X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-0.5 required=5.0 tests=AWL,BAYES_40,RCVD_IN_DNSWL_NONE,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Message-ID: <0BD80C9FA3A2481EB3CD3BCE98896374@desktop2> From: "Sisyphus" To: References: <4C291469 DOT 6070304 AT cygwin DOT com> In-Reply-To: <4C291469.6070304@cygwin.com> Subject: Re: Looking for gcc.exe Date: Tue, 29 Jun 2010 10:04:51 +1000 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="UTF-8"; reply-type=response Content-Transfer-Encoding: 7bit X-IsSubscribed: yes 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 ----- Original Message ----- From: "Larry Hall (Cygwin)" To: Sent: Tuesday, June 29, 2010 7:30 AM Subject: Re: Looking for gcc.exe > On 6/28/2010 10:01 AM, Stephen Morton wrote: >> "Sisyphus" Wrote: >>> I've just installed a fresh "CYGWIN_NT-6.0-WOW64 desktop2 >>> 1.7.5(0.225/5/3) 2010-04-12 19:07 i686 Cygwin", including gcc-4 >>> (4.3.4-3). >>> >>> According to http://cygwin.com/packages/ there should be an executable >>> named gcc.exe in there - but I see only gcc-4.exe. As a quick fix I've >>> created a copy of gcc-4.exe named gcc.exe, and I expect that will work >>> ok. (I've also done the same wrt cpp-4.exe, g++-4.exe and gcov-4.exe.) >>> Is that what we're supposed to do ? ... or did I miss something ? >>> >> >> You need to add /etc/alternatives to your path. > > There is always a symbolic link in '/usr/bin' > for 'gcc' if it's been properly installed. Well ... I did have some doubts as to whether it was installed correctly, though everything seemed fine apart from the absence of "gcc", etc. However, I don't have a /usr/bin folder. And no /etc/alternatives either. > There's no need to clutter your > path regardless though. Just run 'sh /bin/set-gcc-default-4.sh' if you're > missing '/usr/bin/gcc'. bash-3.2# sh /bin/set-gcc-default-4.sh /bin/set-gcc-default-4.sh: line 7: /usr/sbin/alternatives: No such file or directory /bin/set-gcc-default-4.sh: line 7: /usr/sbin/alternatives: No such file or directory /bin/set-gcc-default-4.sh: line 7: /usr/sbin/alternatives: No such file or directory /bin/set-gcc-default-4.sh: line 7: /usr/sbin/alternatives: No such file or directory I'll wipe the current Cygwin installation and do it again (hopefully I can get it done right next time :-) Everything I've tried seems to be working quite well, but there's bound to be ramifications down the track if I don't fix it up properly. Thanks. Cheers, Rob -- 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