X-Recipient: archive-cygwin@delorie.com
X-SWARE-Spam-Status: No, hits=-2.5 required=5.0 	tests=AWL,BAYES_00,SPF_PASS
X-Spam-Check-By: sourceware.org
Message-ID: <4B65BC61.7020303@gmail.com>
Date: Sun, 31 Jan 2010 17:22:41 +0000
From: Dave Korn <dave.korn.cygwin@googlemail.com>
User-Agent: Thunderbird 2.0.0.17 (Windows/20080914)
MIME-Version: 1.0
To: Cygwin Mailing List <cygwin@cygwin.com>
Subject: Re: gcc command not found
References: <37bd06461001310833l65aecd16r3b0e9f2e9c9c764d@mail.gmail.com> <4B65BAD3.60605@gmail.com>
In-Reply-To: <4B65BAD3.60605@gmail.com>
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

On 31/01/2010 17:16, Dave Korn wrote:
> On 31/01/2010 16:33, Paul Cantalupo wrote:
> 
>> OK here is the output from "ls -l /etc/postinstall/gcc*"
> 
>   Argh.  Bad perms, gah.  Try this:
> 
> for x in /etc/postinstall/{gcc.,gcc-[^tm],gcc4-}* ;
> do
>   . $x
> done
> 
>   Then check in your bin dir for all the appropriate names and links.

  Oh, you will probably need to run these first:

chmod a+x /usr/bin/set-gcc-default*
chmod a+x /usr/sbin/fix-libtool-scripts-for-latest-gcc-runtimes.sh

  Then after it's all done you should be able to run either
"set-gcc-default-3.sh" or "set-gcc-default-4.sh" to set whichever version of
the compiler you want as your default.

    cheers,
      DaveK


--
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

