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: <4B3B9AA5.1060307@gmail.com>
Date: Wed, 30 Dec 2009 18:23:33 +0000
From: Dave Korn <dave.korn.cygwin@googlemail.com>
User-Agent: Thunderbird 2.0.0.17 (Windows/20080914)
MIME-Version: 1.0
To: cygwin@cygwin.com
Subject: Re: /var/lib/alternatives/gcc missing for alternatives 1.3.30c
References: <001801ca8951$0096ce80$01c46b80$@calgacus.com> <4B3B8B70.4080106@cygwin.com>
In-Reply-To: <4B3B8B70.4080106@cygwin.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

Larry Hall (Cygwin) wrote:
> On 12/30/2009 08:07 AM, Neil.Mowbray@calgacus wrote:
>> Can someone please provide a valid /var/lib/alternatives/gcc file or link
>>  me to either it's syntax or the programs source?
> 
> This is created when alternatives runs for gcc.  If you're missing it, it
> suggests to me that alternatives wasn't run.  Check
> '/etc/postinstall/gcc.sh*" and "/etc/postinstall/gcc-g++.sh*".  If there is
> no "done" suffix, these didn't run, which is why you don't have the
> alternatives files you're looking for. If there is a "done" suffix, these
> did run but apparently didn't do so successfully.  Try running them again
> by hand and see what errors, if any, pop up.

  Also, apologies: there was a packaging hiccup in the latest version, and the
execute permissions got lost.  If you try to just run set-gcc-default-[34].sh
at the shell, you'll get a "Permission denied" error; you can either chmod a+x
them, or use the ". <name>" (aka bash "source" builtin) syntax to invoke them.

    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

