This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Looking for gcc.exe



----- Original Message ----- From: "Larry Hall (Cygwin)" <reply-to-list-only-lh@cygwin.com>
To: <cygwin@cygwin.com>
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"<sisyphus1 at optusnet ...> 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]