This is the mail archive of the cygwin mailing list for the Cygwin project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: gcc command not found

Andreas Zwerger schrieb:

I'm having the same problem with the latest Cygwin install. But for me rerunning the postinstall scripts does not create the symlinks.

Administrator@haco-xyz ~
$ gcc
bash: gcc: command not found

Administrator@haco-xyz ~
$ for x in /etc/postinstall/{gcc.,gcc-[^tm],gcc4-}* ;
> do
> . $x
> done
sed -i -e /^sys_lib_search_path_spec=/ s|\(pc-cygwin\)/[34].[3-9].[0-9]|\1/4.3.4|g /usr/bin/libtool /usr/share/apr/build-1/libtool
sed -i -e /^dependency_libs=/ s|\(pc-cygwin\)/[34].[3-9].[0-9]/\(lib[a-z_+]*.la\)|\1/4.3.4/\2|g /usr/lib/gcc/i686-pc-cygwin/4.3.4/ /usr/lib/gcc/i686-pc-cygwin/4.3.4/ /usr/lib/gcc/i686-pc-cygwin/4.3.4/ /usr/lib/gcj-4.3.4-9/ /usr/lib/ /usr/lib/ /usr/lib/ /usr/lib/ /usr/lib/ /usr/lib/

OK, problem solved!
Weird enough the reason was an old version of cygwin1.dll in c:/windows directory which was used by cygwin instead of the one in cygwin-bin-dir (since c:/windows comes first in path variable). No idea where that file came from, but there were even more files in c:/windows from cygwin - those are removed now, and gcc works perfectly!

I found that out by calling C:/cygwin/usr/sbin/alternatives.exe from windows-explorer which then gave me an error window saying that the procedure entry point "__ctype_ptr__" was not found in "cygwin1.dll" so I started searching for cygwin1.dll on my system and found the old version in windows directory.

Best regards,

Problem reports:
Unsubscribe info:

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]