On Mon, 23 Feb 2004, Alvyn Liang wrote: > I don't know if this is proper to place here. alright > the installation of g95 can make your former binary hided... > in > > $ cygcheck -srv > > I found these two message: > > Warning: d:\cygwin\tmp\g95\bin\cpp.exe hides d:\cygwin\bin\cpp.exe > Warning: d:\cygwin\tmp\g95\bin\gcc.exe hides d:\cygwin\bin\gcc.exe > > Just a note for ppl who stuck here, maybe someone will just like me > searching for a solution by searching engines > > the results just like the following > > $ gcc test1.c > gcc: installation problem, cannot exec `cc1': No such file or directory > > I think the cygwin will always remember the last time it execute some file, > so that unless you restart the console it will continue to find the old > successful one. > > Alvyn
Cygwin does no such thing. Read up on the PATH environment variable: PAGER='less +1017' man bash You can change the PATH by using "export PATH=<somevalue>". You (or some script) probably prepended "/tmp/g95/bin" to your PATH. Starting a new shell sets PATH to its default value (not that simple, but close enough), which doesn't contain that directory. FWIW, if you'd attached the output of "cygcheck -svr" to your message, instead of simply quoting choice bits from it, it would have helped confirm the above. Igor -- http://cs.nyu.edu/~pechtcha/ |\ _,,,---,,_ [EMAIL PROTECTED] ZZZzz /,`.-'`' -. ;-;;,_ [EMAIL PROTECTED] |,4- ) )-,_. ,\ ( `'-' Igor Pechtchanski, Ph.D. '---''(_/--' `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-. Meow! "I have since come to realize that being between your mentor and his route to the bathroom is a major career booster." -- Patrick Naughton -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/