|
From: David S. <st...@co...> - 2012-02-01 23:13:06
|
Just downloaded a fresh install of mingw using the gui installer. (I also tried with just the command line). When I go to open a mingw shell, using either a shortcut or menu item, it is unable to open a terminal window. Also tried it with the arguments, msys.bat --xvrt with no luck. A new terminal flashes on the screen but quickly closes. Anybody know what the problem is ? I'm working on Windows Vista. Thanks. |
|
From: Earnie B. <ea...@us...> - 2012-02-02 13:02:58
|
On Wed, Feb 1, 2012 at 6:13 PM, David Starkweather <st...@co...> wrote: > Just downloaded a fresh install of mingw using the gui installer. (I > also tried with just the command line). When I go to open a mingw > shell, using either a shortcut or menu item, it is unable to open a > terminal window. Also tried it with the arguments, msys.bat --xvrt with > no luck. A new terminal flashes on the screen but quickly closes. > What is --xvrt? That should be --rxvt but anyway ... > Anybody know what the problem is ? I'm working on Windows Vista. > Many are using MSYS on Windows 7. If you open a cmd.exe and execute ``c:\path\to\msys\1.0\bin\sh.exe --login -i'' does it function? -- Earnie -- https://sites.google.com/site/earnieboyd |
|
From: David S. <st...@co...> - 2012-02-02 16:48:30
|
do you mean executing msys.bat right after "sh.exe --login -i" ? If so, that doesnt work either. It immediately closes the cmd window. On Thu, 2012-02-02 at 08:02 -0500, Earnie Boyd wrote: > On Wed, Feb 1, 2012 at 6:13 PM, David Starkweather <st...@co...> wrote: > > Just downloaded a fresh install of mingw using the gui installer. (I > > also tried with just the command line). When I go to open a mingw > > shell, using either a shortcut or menu item, it is unable to open a > > terminal window. Also tried it with the arguments, msys.bat --xvrt with > > no luck. A new terminal flashes on the screen but quickly closes. > > > > What is --xvrt? That should be --rxvt but anyway ... > > > Anybody know what the problem is ? I'm working on Windows Vista. > > > > Many are using MSYS on Windows 7. If you open a cmd.exe and execute > ``c:\path\to\msys\1.0\bin\sh.exe --login -i'' does it function? > > -- > Earnie > -- https://sites.google.com/site/earnieboyd > > ------------------------------------------------------------------------------ > Keep Your Developer Skills Current with LearnDevNow! > The most comprehensive online learning library for Microsoft developers > is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, > Metro Style Apps, more. Free future releases when you subscribe now! > http://p.sf.net/sfu/learndevnow-d2d > _______________________________________________ > MinGW-users mailing list > Min...@li... > > This list observes the Etiquette found at > http://www.mingw.org/Mailing_Lists. > We ask that you be polite and do the same. Disregard for the list etiquette may cause your account to be moderated. > > _______________________________________________ > You may change your MinGW Account Options or unsubscribe at: > https://lists.sourceforge.net/lists/listinfo/mingw-users > Also: mailto:min...@li...?subject=unsubscribe |
|
From: Keith M. <kei...@us...> - 2012-02-02 17:03:52
|
On 2 February 2012 16:48, David Starkweather wrote: > do you mean executing msys.bat right after "sh.exe --login -i" ? No, he means forget about msys.bat altogether: Microsoft Windows [Version 6.0.6002] Copyright (c) 2006 Microsoft Corporation. All rights reserved. C:\Local\PortableApps\MsysPortable> bin\sh --login -i keith@localhost ~ $ pwd -W C:/Local/PortableApps/MsysPortable/home/keith keith@localhost ~ $ This is on Vista 32-bit. IIRC, if you are on 64-bit, you MUST run this under SysWOW64. -- Regards, Keith. |
|
From: Ralph E. <ral...@gm...> - 2012-02-02 17:04:20
|
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 I think he means opening the windows command prompt and changedir to where bash lives (usually C:\msys\1.0\bin so type cd C:\msys\1.0\bin and hit enter) then typing bash --login -i and hit enter, and write the output here. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iQEcBAEBAgAGBQJPKsIUAAoJEIjGvG7Y4HU8N1sH/RUzG/c8TltgvcTZ7PEoRAKb FqF/QrY+wNxhgkjb0eYCKCWjlqa/2SLtT6zmUK83ggNA5B1HJRD6fF43KrMWWMuD 3qUq1B/Q4wHZaFRp3/VrGdWn4bOtrPdEVX76vCocXWq2ZM+E3+sQxLWbrNQTsff3 jlnSOoAK/92Y3l1+9qKVNN+48E74srhbalmLw3zH4bYdB5zTnV4qYkdp/t5+Rm8a UEK/fVdFCaakJUGPP9XkuOJlmQq8bjSsWtve1WYFaV9OQhFFaNG2P13WwzodQqCD PQMPinr0LdgcfXbHS+dtFPL5U3h5nG1CQu65eG/mD4iw46gM0eVu/n+TDuqWWRo= =S281 -----END PGP SIGNATURE----- |
|
From: David S. <st...@co...> - 2012-02-02 17:20:45
|
Yes. I'm on Windows Vista 32-bit. Using that command allows me to log onto bash. bash --login -i Is there a new msys.bat file i should get ? or is this a new way of doing it ? thanks. On Thu, 2012-02-02 at 18:04 +0100, Ralph Engels wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > I think he means opening the windows command prompt and changedir to > where bash lives (usually C:\msys\1.0\bin so type cd C:\msys\1.0\bin > and hit enter) then typing bash --login -i and hit enter, and write > the output here. > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.4.9 (MingW32) > Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ > > iQEcBAEBAgAGBQJPKsIUAAoJEIjGvG7Y4HU8N1sH/RUzG/c8TltgvcTZ7PEoRAKb > FqF/QrY+wNxhgkjb0eYCKCWjlqa/2SLtT6zmUK83ggNA5B1HJRD6fF43KrMWWMuD > 3qUq1B/Q4wHZaFRp3/VrGdWn4bOtrPdEVX76vCocXWq2ZM+E3+sQxLWbrNQTsff3 > jlnSOoAK/92Y3l1+9qKVNN+48E74srhbalmLw3zH4bYdB5zTnV4qYkdp/t5+Rm8a > UEK/fVdFCaakJUGPP9XkuOJlmQq8bjSsWtve1WYFaV9OQhFFaNG2P13WwzodQqCD > PQMPinr0LdgcfXbHS+dtFPL5U3h5nG1CQu65eG/mD4iw46gM0eVu/n+TDuqWWRo= > =S281 > -----END PGP SIGNATURE----- > > ------------------------------------------------------------------------------ > Keep Your Developer Skills Current with LearnDevNow! > The most comprehensive online learning library for Microsoft developers > is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, > Metro Style Apps, more. Free future releases when you subscribe now! > http://p.sf.net/sfu/learndevnow-d2d > _______________________________________________ > MinGW-users mailing list > Min...@li... > > This list observes the Etiquette found at > http://www.mingw.org/Mailing_Lists. > We ask that you be polite and do the same. Disregard for the list etiquette may cause your account to be moderated. > > _______________________________________________ > You may change your MinGW Account Options or unsubscribe at: > https://lists.sourceforge.net/lists/listinfo/mingw-users > Also: mailto:min...@li...?subject=unsubscribe |
|
From: Ralph E. <ral...@gm...> - 2012-02-02 18:25:41
|
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 its not the new way, just a test to see if bash works and maybe figure out why the bat fails. bash seems to work though so im inclined to believe that some software deleted the comspec variable (noticed this with some old dev-cpp at one time) and in that case msys.bat wont work correctly. A simple test to see if thats the case is typing %comspec% in windows search and hitting enter.If its allright it should open a command prompt, if it does not its time to repair a few things in windows PATH variable. Reckless -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iQEcBAEBAgAGBQJPKtUmAAoJEIjGvG7Y4HU8c9UH/0VWGab3rnLtXXYmQRMHpU31 3y5zWVidOKdkSoQ/Ojh+D2runqxU5GHVBafrWfKZ4GjCL8mNON8uwSRJJMCWIqvM h+njC/yOpE4qOcQVt7aORyPtfG7sLwcSS3yrbG+d5+wXxD45+n7dUwtfrtySkNTH g/DhojRfENGJ9MrVNXm7GN5M+lNErZmNjGOx+WGOGWAbcnKkH9NeEhbpkwYsJvuY 6tDiKmesQdngS24O21HFiqxi4fqz3NpbOvI+l0cO1oWbEAIuLsdUvAO66uGw2J5r Qw33fK9p5oVfm7Ko5cTvOpjHkCNzueUgZljOcSeBaxvgh1jRV3VYc0p0xETrOYY= =uOBm -----END PGP SIGNATURE----- |
|
From: David S. <st...@co...> - 2012-02-02 21:56:44
|
typeing "%comspec%" in windows search does bring up a cmd.exe window. Is there a simple way to repair the msys.bat file on my system ? or can I run a shell simply by executing the sh.exe program ? Just wonderring if i'm missing some things with it that way. I don't seem to be able to execute ./configure scripts this way. My path variable hash c:\mingw\bin and c:\mingw\msys\1.0\bin in it. On Thu, 2012-02-02 at 19:25 +0100, Ralph Engels wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > its not the new way, just a test to see if bash works and maybe figure > out why the bat fails. bash seems to work though so im inclined to > believe that some software deleted the comspec variable (noticed this > with some old dev-cpp at one time) and in that case msys.bat wont work > correctly. A simple test to see if thats the case is typing %comspec% > in windows search and hitting enter.If its allright it should open a > command prompt, if it does not its time to repair a few things in > windows PATH variable. > > Reckless > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.4.9 (MingW32) > Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ > > iQEcBAEBAgAGBQJPKtUmAAoJEIjGvG7Y4HU8c9UH/0VWGab3rnLtXXYmQRMHpU31 > 3y5zWVidOKdkSoQ/Ojh+D2runqxU5GHVBafrWfKZ4GjCL8mNON8uwSRJJMCWIqvM > h+njC/yOpE4qOcQVt7aORyPtfG7sLwcSS3yrbG+d5+wXxD45+n7dUwtfrtySkNTH > g/DhojRfENGJ9MrVNXm7GN5M+lNErZmNjGOx+WGOGWAbcnKkH9NeEhbpkwYsJvuY > 6tDiKmesQdngS24O21HFiqxi4fqz3NpbOvI+l0cO1oWbEAIuLsdUvAO66uGw2J5r > Qw33fK9p5oVfm7Ko5cTvOpjHkCNzueUgZljOcSeBaxvgh1jRV3VYc0p0xETrOYY= > =uOBm > -----END PGP SIGNATURE----- > > ------------------------------------------------------------------------------ > Keep Your Developer Skills Current with LearnDevNow! > The most comprehensive online learning library for Microsoft developers > is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, > Metro Style Apps, more. Free future releases when you subscribe now! > http://p.sf.net/sfu/learndevnow-d2d > _______________________________________________ > MinGW-users mailing list > Min...@li... > > This list observes the Etiquette found at > http://www.mingw.org/Mailing_Lists. > We ask that you be polite and do the same. Disregard for the list etiquette may cause your account to be moderated. > > _______________________________________________ > You may change your MinGW Account Options or unsubscribe at: > https://lists.sourceforge.net/lists/listinfo/mingw-users > Also: mailto:min...@li...?subject=unsubscribe |
|
From: Keith M. <kei...@us...> - 2012-02-02 23:24:21
|
David, Please stop top-posting. If you persist with the practice, this is positively the last you will hear from me. On 02/02/12 21:57, David Starkweather wrote: > Is there a simple way to repair the msys.bat file on my system ? What makes you think it needs to be repaired? If it really is damaged, just copy it from a fresh installation. > or can I run a shell simply by executing the sh.exe program ? Yes. Run it as 'path/to/sh.exe --login -i'. > Just wonderring if i'm missing some things with it that way. It's not so easy to start it under rxvt -- definitely not recommended -- or under mintty. Otherwise, within a native MSW console -- where it's most reliable anyway -- there should be no difference. > I don't seem to be able to execute ./configure scripts this way. WJFFM, and I haven't used msys.bat in years; if this isn't working for you, there is some other reason. > My path variable hash c:\mingw\bin and c:\mingw\msys\1.0\bin in it. In your windows environment? Don't set them there. Let MSYS set them up, as it will, when you start sh.exe with the --login option. -- Regards, Keith. |
|
From: David S. <st...@co...> - 2012-02-03 00:55:48
|
Sorry about the top-posting. IWHA. Right now, the msys.bat file brings up a command window, but it terminates immediately after opening. The %comspec% also brings up a cmd.exe window, but it too closes immediately after opening. I would like to fix the msys.bat file or whatever env variable i need to fix. Where does msys find those paths to affix to automatically affix to the PATH variable ? thanks, dgs. |
|
From: Ralph E. <ral...@gm...> - 2012-02-03 12:52:50
|
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Sorry was quite early here when i responded. So %comspec% closes immediatly ... well i was afraid of that, some program you uninstalled deleted windows PATH variable instead of just the part it had been a part of and cmd.exe is no longer globally accessible. The fix is easy if you know where to look in windows but instead of yapping of a ton of things ill show you the easy route. make a text file in the root of C:\ and write this in it. _________________________________________________________________ @echo off SET PATH=%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%PATH% SET COMSPEC=%SystemRoot%\system32\cmd.exe;%COMSPEC% SHUTDOWN /R __________________________________________________________________ save and rename the txt file to repair.bat now open a windows command prompt and do cd \ then hit enter. type in repair and hit enter. your pc will reboot and everything should be ok. hope this helps. Reckless -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iQEcBAEBAgAGBQJPK9ioAAoJEIjGvG7Y4HU8EJoH/jUxB1BR4VqlDosgy9uwVgAN UAx+VGqt6LtYh0pXTlhgCXTJGnYHRVS1PQ7WHH0QHkuLbDmckqlhLzOqSJjyUDnc 53o2NYPwSOHf0QEF8CpW8BY8PQGD32EFWewJCjsru9e3uoA1gmc+hpMeeqxh2fKg h9PG5oPy5Dhwmxc7so3dgX9bUcj4Du+zGNgi2Z9pVk0BiA3qWo67Auh9QVmzzq5C mzGA2vpb0zXrBh7/xzjkb076+VG9WKRN8DAlGS0I7BgR1OrRHSjWNaz/05yjnP7i miB8zrLrwCqI1xJJgXxVKLmtMw1dM+6ZhfCsLGN3V3Em+RwCVnvs29uRgWyvxjs= =4GEc -----END PGP SIGNATURE----- |
|
From: <min...@sp...> - 2012-02-03 20:30:29
|
Ralph Engels wrote: > Sorry was quite early here when i responded. So %comspec% closes > immediatly ... well i was afraid of that, some program you uninstalled > deleted windows PATH variable instead of just the part it had been a > part of and cmd.exe is no longer globally accessible. > > The fix is easy if you know where to look in windows but instead of > yapping of a ton of things ill show you the easy route. > > make a text file in the root of C:\ and write this in it. > > _________________________________________________________________ > > @echo off > > SET > PATH=%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%PATH% > SET COMSPEC=%SystemRoot%\system32\cmd.exe;%COMSPEC% > SHUTDOWN /R > > __________________________________________________________________ > > > save and rename the txt file to repair.bat > > now open a windows command prompt and do cd \ then hit enter. > type in repair and hit enter. your pc will reboot and everything > should be ok. > > hope this helps. > > Reckless Doesn't that just set the variables for the current console session? I think those changes will be lost after a restart (or even from another console session without restarting Windows). To be permanent, I think you have to set them from the System control panel. How to get there varies from one version of Windows to another, but from Vista: Start > Control Panel > System > Advanced System Settings > Advanced tab > Environment Variables... Look for Path and ComSpec in the lower section (System variables). Path should contain somewhere (ideally as the first items): C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem; or equivalent if Windows is not installed to C:\Windows (e.g. C:\WINNT for some NT-based versions), or perhaps: %SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem; ComSpec should be: %SystemRoot%\system32\cmd.exe or similar. I think it should be just the one command, not a list of commands, so you probably don't want to append any existing content. Mark. |
|
From: Ralph E. <ral...@gm...> - 2012-02-04 07:06:35
|
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Thats the actuall way to do it aye :) but it also works this way (well for me atleast) if i set say PATH=C:\something without ;%PATH% at the end then it only works for the current session but when i use set PATH=C:\something;%PATH% it saves it. And @ David. You might get better results from reinstalling win7 or running a repair install so windows can correct the stuff that broke. It looks like more than one thing broke since your AV also behaves weird. As for the help im only happy to lend a hand :) -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iQEcBAEBAgAGBQJPLNkCAAoJEIjGvG7Y4HU8n+YH/R7nXhhv+J5zyrQgI7tcIJj6 XjahyMBxVpZJEfqqLuY5jKnj0VQKO1Er91Xw5u4IEl0iFPR6gdnwyn05PaDBkF5m mLf8dnl92HvHk1bHnR3hJ1cQyJ5tjI2jvWROHDscSRAIfLhS3jwzm9VUz9UgNz/s q2Drzucmdaf1+eNgnqStL2FhwlfkL1vBA0R4pKJMQGx+NEiDzWM04qxRNcQEIVtC ehSvAFRkDcx36AZ4gvtt96NBFaZfYHU2frDb6BeQDSRGDCb9a9zOVozsgYAqbESw IWQZtA5LSmoEUS3/JB8eUlgK4Ly7N2LslphrfSsS845JiLavT/+5qLH9o2egTIM= =lqVI -----END PGP SIGNATURE----- |
|
From: Ralph E. <ral...@gm...> - 2012-02-03 05:09:53
|
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Ok thats good :) atleast the windows variables seem ok. Small experiment copy the below to a txt file and rename it to msys.bat @echo off rem Copyright (C): 2001, 2002, 2003, 2004, 2005 Earnie Boyd rem mailto:ea...@us... rem This file is part of Minimal SYStem rem http://www.mingw.org/msys.shtml rem rem File: msys.bat rem Revision: 2.4 rem Revision Date: December 8th, 2005 rem ember to set the "Start in:" field of the shortcut. rem A value similar to C:\msys\1.0\bin is what the "Start in:" field needs rem to represent. SET VSENVPATH=unknown if defined VS110COMNTOOLS ( CALL SET VSENVPATH=%%VS110COMNTOOLS%% ) else if defined VS100COMNTOOLS ( CALL SET VSENVPATH=%%VS100COMNTOOLS%% ) else if defined VS90COMNTOOLS ( CALL SET VSENVPATH=%%VS90COMNTOOLS%% ) else if defined VS80COMNTOOLS ( CALL SET VSENVPATH=%%VS80COMNTOOLS%% ) else if defined VS70COMNTOOLS ( CALL SET VSENVPATH=%%VS70COMNTOOLS%% ) if exist "%VSENVPATH%vsvars32.bat" ( CALL "%%VSENVPATH%%vsvars32.bat" ) SET VSENVPATH= rem ember value of GOTO: is used to know recursion has happened. if "%1" == "GOTO:" goto %2 if NOT "x%WD%" == "x" set WD= rem ember command.com only uses the first eight characters of the label. goto _WindowsNT rem ember that we only execute here if we are in command.com. :_Windows if "x%COMSPEC%" == "x" set COMSPEC=command.com start /min %COMSPEC% /e:4096 /c %0 GOTO: _Resume %0 %1 %2 %3 %4 %5 %6 %7 %8 %9 goto EOF rem ember that we execute here if we recursed. :_Resume for %%F in (1 2 3) do shift if NOT EXIST %WD%msys-1.0.dll set WD=.\bin\ rem ember that we get here even in command.com. :_WindowsNT rem Hopefully a temporary workaround for getting MSYS shell to run on x64 rem (WoW64 cmd prompt sets PROCESSOR_ARCHITECTURE to x86) if not "x%PROCESSOR_ARCHITECTURE%" == "xAMD64" goto _NotX64 set COMSPEC=%WINDIR%\SysWOW64\cmd.exe %COMSPEC% /c %0 %1 %2 %3 %4 %5 %6 %7 %8 %9 goto EOF :_NotX64 if NOT EXIST %WD%msys-1.0.dll set WD=%~dp0\bin\ rem ember Set up option to use rxvt based on value of %1 set MSYSCON=unknown if "x%1" == "x-nomintty" set MSYSCON=rxvt.exe if "x%1" == "x--nomintty" set MSYSCON=rxvt.exe if "x%1" == "x-mintty" set MSYSCON=mintty.exe if "x%1" == "x--mintty" set MSYSCON=mintty.exe if "x%1" == "x-norxvt" set MSYSCON=sh.exe if "x%1" == "x--norxvt" set MSYSCON=sh.exe if "x%1" == "x-rxvt" set MSYSCON=rxvt.exe if "x%1" == "x--rxvt" set MSYSCON=rxvt.exe if NOT "x%MSYSCON%" == "xunknown" shift if "x%MSYSCON%" == "xunknown" set MSYSCON=mintty.exe if "x%MSYSTEM%" == "x" set MSYSTEM=MSYS if "%1" == "MINGW32" set MSYSTEM=MINGW32 if "%1" == "MINGW64" set MSYSTEM=MINGW64 if "%1" == "LLVM" set MSYSTEM=LLVM if "%1" == "MSYS" set MSYSTEM=MSYS if NOT "x%DISPLAY%" == "x" set DISPLAY= if "x%MSYSCON%" == "xmintty.exe" goto startmintty if "x%MSYSCON%" == "xrxvt.exe" goto startrxvt if "x%MSYSCON%" == "xsh.exe" goto startsh if "x%MSYSCON%" == "xksh.exe" goto startksh :unknowncon echo %MSYSCON% is an unknown option for msys.bat. pause exit 1 :notfound echo Cannot find the mintty.exe, rxvt.exe or sh.exe binary -- aborting. pause exit 1 :startmintty if NOT EXIST %WD%mintty.exe goto startrxvt start %WD%mintty /bin/bash -li exit rem If you don't want to use rxvt then rename the file rxvt.exe to something rem else. Then sh.exe will be used instead. :startrxvt if NOT EXIST %WD%rxvt.exe goto startsh rem Setup the default colors for rxvt. if "x%MSYSBGCOLOR%" == "x" set MSYSBGCOLOR=White if "x%MSYSFGCOLOR%" == "x" set MSYSFGCOLOR=Black if "x%MINGW32BGCOLOR%" == "x" set MINGW32BGCOLOR=LightYellow if "x%MINGW32FGCOLOR%" == "x" set MINGW32FGCOLOR=Navy if "%MSYSTEM%" == "MSYS" set BGCOLOR=%MSYSBGCOLOR% if "%MSYSTEM%" == "MSYS" set FGCOLOR=%MSYSFGCOLOR% if "%MSYSTEM%" == "MINGW32" set BGCOLOR=%MINGW32BGCOLOR% if "%MSYSTEM%" == "MINGW32" set FGCOLOR=%MINGW32FGCOLOR% start %WD%rxvt -backspacekey -sl 2500 -fg %FGCOLOR% -bg %BGCOLOR% - -sr -fn Courier-12 -tn msys -geometry 80x25 -e /bin/sh --login -i exit :startsh if NOT EXIST %WD%sh.exe goto notfound start %WD%sh --login -i exit :startksh if NOT EXIST %WD%ksh.exe goto notfound start %WD%ksh --login -i exit :EOF rem ChangeLog: rem 2002.03.07 Earnie Boyd mailto:ea...@us... rem * Move the @echo off to the top. rem * Change the binmode setting to nobinmode. rem * Remove the angle brackets around email address to workaround MS rem buggy command processor. rem rem 2002.03.12 Earnie Boyd mailto:ea...@us... rem * Add filter logic to find rxvt.exe rem rem 2002.03.13 Earnie Boyd mailto:ea...@us... rem * Revert the nobinmode change. rem rem 2002.03.20 Earnie Boyd mailto:ea...@us... rem * Add logic for stating bash. rem rem 2002.04.11 Earnie Boyd mailto;ea...@us... rem * Add logic for setting MSYSTEM value based on parameter. rem rem 2002.04.15 Olivier Gautherot mailto:oli...@me... rem * Reduce number test conditions for finding an executable. rem rem 2002.04.15 Earnie Boyd mailto:ea...@us... rem * Unset DISPLAY if set before starting shell. rem rem 2002.04.16 Earnie Boyd mailto:ea...@us... rem * Remove use of DEFINED in conditional statments for variables for rem command.com support. rem * Add check for nonexistance of USERNAME variable for Win9x support. rem rem 2002.04.17 Earnie Boyd mailto:ea...@us... rem * Add foreground and background color defaults based on MSYSTEM value. rem rem 2002.04.22 Earnie Boyd mailto:ea...@us... rem * More Win 9x changes. rem rem 2002.05.04 Earnie Boyd mailto:ea...@us... rem * Remove the SET of USERNAME and HOME. rem rem 2002.11.18 Earnie Boyd mailto:ea...@us... rem * Add command.com detection and restart with a larger environment to rem avoid errors on w9x. rem Many thanks to Randy W. Sims mailto:Ra...@Th.... rem See Randy's response to "RE: [Mingw-msys] Installation on WindowsME" rem from 11/06/2002 in the archives of min...@li.... rem rem 2002.11.19 Paul Garceau mailto:pga...@at... rem * Fix a typo: Change COMPSPEC to COMSPEC. rem rem 2002.11.25 Earnie Boyd mailto:ea...@us... rem * Remove the SET CYGWIN since it doesn't matter any longer. rem rem 2003.02.03 Earnie Boyd mailto:ea...@us... rem * Win9x doesn't like ``EXISTS dir'' so change it to ``EXISTS dir\nul''. rem Thanks to Nicolas Weber mailto:nic...@gm.... rem rem 2003.03.06 Earnie Boyd mailto:ea...@us... rem * Add -backspacekey switch to rxvt startup. rem * Move RXVT color setup to startrxvt label rem rem 2004.01.30 Earnie Boyd mailto:ea...@us... rem * Add -geometry parameter to work around an off by one issue with rem the default values. rem Thanks to Dave Schuyler mailto:par...@us... rem rem 2004.03.28 Earnie Boyd mailto:ea...@us... rem * Add -norxvt or --norxvt switch argument. rem Thanks to Keith Marshall mailto:Kei...@to.... rem * Add method to determine absolute path of msys.bat so that we no rem longer need to change to the bin directory. This allows msys.bat to be rem called from any working directory. rem Thanks to Kevin Mack mailto:kev...@us... rem rem 2005.07.06 Max TE Woodbury mailto:mt...@us... rem * Fixed WD check for command.com systems. rem * Minimized intermediate CMD window to reduce startup flashyness. rem * If rxvt.exe cannot be found, try sh.exe. rem rem 2005.12.06 Tuomo Latto mailto:non...@us... rem * Added a temporary workaround for getting MSYS shell to run on x64. rem rem 2005.12.07 Keith Marshall mailto:kei...@us... rem * ``EXISTS %WD%\sh.exe'' should be ``EXISTS %WD%sh.exe''; corrected. rem * Modified Tuomo's patch, to avoid trashing Window settings in Win32. rem rem 2005.12.08 Tuomo Latto mailto:non...@us... rem * Keith's modified patch fails on x64; start did funny things. rem Reworked, for correct behaviour on both platforms. rem rem 2009.03.17 Keith Marshall mailto:kei...@us... rem * Add -rxvt or --rxvt switch; start in --norxvt mode by default. rem Make it deterministic; (do not inherit MSYSCON from parent). rem now replace yours and get the mintty package from mingw-get let me know if that changes anything. if it does you get a few benefits like being able to copy text directly to the msys terminal. And if you can do me a favor try opening your /etc/profile in notepad and post the contents here. Best wishes Reckless -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iQEcBAEBAgAGBQJPK2wmAAoJEIjGvG7Y4HU8rxkH/0CG8swKi/dWfE/Mpo2Z2EdZ TePrwue6pmzCk/SOjCwDR4Oi5im7eAxs4L6usvXtPfa9//9NzOqVUz6HBNQpK8EL l0G8ot4aNxxKOcJzKArF3ykNhgqKKCMZygxtMj5zYJOemhiIPGK6EJ32CeQjGEaR dL5XjxTYGVHdfILX08sNlQUfpVaKRBInVCpZL/91HYY5XCYqROEqHnGNGYdeZjJN dxhNcOp+9tw62tckSOkqBEDLs74FdUWd7JoT9GtTOxs3+pq6h2H7LnuNNszeHofp n0zZiOgjhY2jGo67S1dMYDxRYixx6XM/I+bwE1GfRauohCa9438CKcAbupKXKuc= =Z4jM -----END PGP SIGNATURE----- |
|
From: David S. <st...@co...> - 2012-02-03 17:42:49
|
yes, that works. The profile from /etc/profile is below. The only thing now is that I can't execute scripts in the bash shell - such as configure scripts with ./configure. Any idea ? # Copyright (C) 2001, 2002 Earnie Boyd <ea...@us...> # This file is part of the Minimal SYStem. # http://www.mingw.org/msys.shtml # # File: profile # Description: Shell environment initialization script # Last Revised: 2002.05.04 if [ -z "$MSYSTEM" ]; then MSYSTEM=MINGW32 fi # My decision to add a . to the PATH and as the first item in the path list # is to mimick the Win32 method of finding executables. # # I filter the PATH value setting in order to get ready for self hosting the # MSYS runtime and wanting different paths searched first for files. if [ $MSYSTEM == MINGW32 ]; then export PATH=".:/usr/local/bin:/mingw/bin:/bin:$PATH" else export PATH=".:/usr/local/bin:/bin:/mingw/bin:$PATH" fi if [ -z "$USERNAME" ]; then LOGNAME="`id -un`" else LOGNAME="$USERNAME" fi # Set up USER's home directory if [ -z "$HOME" ]; then HOME="/home/$LOGNAME" fi if [ ! -d "$HOME" ]; then mkdir -p "$HOME" cp /etc/inputrc.default "$HOME"/.inputrc fi if [ "x$HISTFILE" == "x/.bash_history" ]; then HISTFILE=$HOME/.bash_history fi export HOME LOGNAME MSYSTEM HISTFILE for i in /etc/profile.d/*.sh ; do if [ -f $i ]; then . $i fi done export MAKE_MODE=unix export PS1='\[\033]0;$MSYSTEM:\w\007 \033[32m\]\u@\h \[\033[33m\w\033[0m\] $ ' alias clear=clsb cd "$HOME" |
|
From: Ralph E. <ral...@gm...> - 2012-02-03 19:38:39
|
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hmm profile looks ok so nothing there. My best guess is that some program screwed up several things when it was uninstalled especially since %comspec% was broken. if you can start bash via the msys.bat now it should work and configure scripts should execute unless something (antivirus etc. is blocking it. yep that actually happens :/). also be sure to run msys.bat as administrator by rightclicking it and selecting run as admin as win7's UAC has a nasty habit of blocking stuff to (i normally disable it completely but its on your hat then if something goes wrong so i wont recommend it). -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iQEcBAEBAgAGBQJPLDfFAAoJEIjGvG7Y4HU8tYoH/1q7hNrDR6qcV5xPC0sGmKGV KfR+RBlz4ybkqVSNxIJvZEt8P6uW7Cg4bixJaUZFRHvym/haqOOpsyb3jyCvMHRd VYpv92hiQm/+cQcKXRyqATevEmCjDbJprHSzXqw/uBk19CwnWI5t6yzbsZrcV9Sp f96j7AZOokOkSDkz9aZ8sR1od1qytsDw1oQBfoQNWHtbwVXGfH0IAxSJBpA4uhl9 7La+Zxz2eoX+vttym7txD3DREkmcbFMG5WZOznIMvhqt2wwAgJ73PmI1hCBgCacx YUeEc8TKNpTw72j9u9j79RfWoejeJC1AvWT5In8Jpyvndm0+oHRnPWXovqr6DNM= =zr+r -----END PGP SIGNATURE----- |
|
From: David S. <st...@co...> - 2012-02-03 21:47:56
|
Thanks. Yeah, somethings blocking the ability to run all scripts. I can't even run the postinstall script, pi.sh. Oddly enough, the security center reports that the machine has AV running, but there doesnt appear to be any installed. And the Windows Defender from MS will not start either. I may have try on another system. Thanks for all your help. |