X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-2.4 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_LOW X-Spam-Check-By: sourceware.org Delivery-date: Sat, 06 Feb 2010 14:29:43 +0100 Message-ID: <4B6D6EC3.7030802@uni-freiburg.de> Date: Sat, 06 Feb 2010 14:29:39 +0100 From: Andreas Zwerger User-Agent: Thunderbird 2.0.0.23 (Windows/20090812) MIME-Version: 1.0 To: Cygwin mailing list Subject: Re: gcc command not found References: <4B6D5B52 DOT 5050708 AT uni-freiburg DOT de> In-Reply-To: <4B6D5B52.5050708@uni-freiburg.de> Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Andreas Zwerger schrieb: > Hello, > > I'm having the same problem with the latest Cygwin install. But for me > rerunning the postinstall scripts does not create the symlinks. > > Administrator AT haco-xyz ~ > $ gcc > bash: gcc: command not found > Administrator AT 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/libgcj-noncore.la > /usr/lib/gcc/i686-pc-cygwin/4.3.4/libgcj-tools.la > /usr/lib/gcc/i686-pc-cygwin/4.3.4/libgij.la > /usr/lib/gcj-4.3.4-9/libjvm.la /usr/lib/libFLAC++.la > /usr/lib/libncurses++.la /usr/lib/libncurses++w.la > /usr/lib/libplotter.la /usr/lib/libtiffxx.la /usr/lib/libxerces-c.la 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, Andreas -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple