Re: Lion and gcc/g++ command not found
Re: Lion and gcc/g++ command not found
- Subject: Re: Lion and gcc/g++ command not found
- From: Mark Nobles <email@hidden>
- Date: Mon, 25 Jul 2011 12:30:40 -0500
On 24 Jul 2011, at 12:39 PM, Jens Alfke wrote: On Jul 23, 2011, at 8:41 PM, Jeffrey Walton wrote:
No - I was at 3.2.6 prior to Lion. After the Lion update, Xcode
appeared to work (from an iPhone/iPad project), so I did not perform a
[re]install to fix things.
The problems I'm seeing now are from a bash shell.
Xcode is going to invoke the tools in the SDK of the platform you‚re building for. So even if they‚re missing in /usr/bin, it‚ll still work. But you should install Xcode 4.1 to get the up-to-date tools into the regular system paths.
It didn't work for me. I installed Lion and then Xcode, and I still don't see the path to gcc. In Terminal, I do this:
$ echo $PATH /Library/Frameworks/Python.framework/Versions/3.2/bin:/opt/local/bin:/opt/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin
$ gcc --version -bash: gcc: command not found
$ /Developer/usr/bin/gcc --version i686-apple-darwin10-gcc-4.2.1 (GCC) 4.2.1 (Apple Inc. build 5666) (dot 3) Copyright (C) 2007 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
It looks like I need to add /Developer/usr/bin/ (& /Developer/usr/sbin/) to my $PATH. Wasn't the Xcode installer supposed to take care of this?
Mark |
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden