This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: [cygwin-g95] Interfere with the original binary files
- From: Igor Pechtchanski <pechtcha at cs dot nyu dot edu>
- To: Alvyn Liang <sacch dot liang at msa dot hinet dot net>
- Cc: cygwin at cygwin dot com
- Date: Sun, 22 Feb 2004 20:19:37 -0500 (EST)
- Subject: Re: [cygwin-g95] Interfere with the original binary files
- References: <000e01c3f9a9$6a144b50$1701a8c0@Alvyn>
- Reply-to: cygwin at cygwin dot com
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/
|\ _,,,---,,_ pechtcha@cs.nyu.edu
ZZZzz /,`.-'`' -. ;-;;,_ igor@watson.ibm.com
|,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/