X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=1.7 required=5.0 tests=AWL,BAYES_00,FH_DATE_PAST_20XX,RCVD_IN_JMF_BL,SARE_RECV_SPAM_NAME2 X-Spam-Check-By: sourceware.org From: To: References: <001801ca8951$0096ce80$01c46b80$@calgacus.com> In-Reply-To: <001801ca8951$0096ce80$01c46b80$@calgacus.com> Subject: RE: /var/lib/alternatives/gcc missing for alternatives 1.3.30c Date: Fri, 1 Jan 2010 20:59:57 +0800 Message-ID: <004d01ca8ae2$53081100$f9183300$@calgacus.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" 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 Thanks folks. I did have a /etc/postinstll/gcc.sh.done but it was installing v3.0 so I modified to v4.0 and run it which solved the problem. Also apologies for not understanding how alternatives works -- all fixed now. Regards, Neil Larry Hall (Cygwin) wrote: > On 12/30/2009 08:07 AM, Neil DOT Mowbray AT 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 ". " (aka bash "source" builtin) syntax to invoke them. cheers, DaveK -----Original Message----- From: Neil DOT Mowbray AT calgacus DOT com [mailto:Neil DOT Mowbray AT calgacus DOT com] Sent: 30 December 2009 21:07 To: cygwin AT cygwin DOT com Subject: /var/lib/alternatives/gcc missing for alternatives 1.3.30c Dear Folks, The scripts /bin/set-gcc-default-[34].sh are written to use alternatives to install gcc-3 and gcc-4. But /var/lib/alternatives/gcc is missing. I tried to create it using g++ as an example but all functions failed with an error failed to read link /usr/bin/gcc.exe (which is the orginal problem). I look for the source but the cygwin alternatives src tar ball doesn't contain the source nor can I find it on cygwin.com or with a quick google search. So I write this message. Can someone please provide a valid /var/lib/alternatives/gcc file or link me to either it's syntax or the programs source? Regards, Neil -- 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