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: Jack Howarth <email@hidden>
- Date: Mon, 25 Jul 2011 13:48:44 -0400
On Mon, Jul 25, 2011 at 12:30:40PM -0500, Mark Nobles wrote:
> 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
Mark,
You might try reinstalling Xcode 4.1 for a second time. I've seen instances where attempting to deinstall
the prior Xcode first confuses the Xcode 4.x installer and it doesn't install everything. Reinstalling Xcode 4.1
a second time solved the issue.
Jack
> _______________________________________________
> 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
_______________________________________________
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