Does Updating to OS X Lion Delete gcc?
Solution 1:
I was mighty pissed when I found out that the OS X Lion upgrade wiped out my entire development tool-chain. However, with help from a friend, I discovered that the tool-chain had instead been moved into the /Developer/usr/bin/
folder on disk. For my immediate need, I only had to make make
, gcc
and g++
available on path, so I created symlinks to /Developer/usr/bin/gnumake
, /Developer/usr/bin/gcc-4.2
, and /Developer/usr/bin/g++-4.2
inside the /usr/bin/
folder. However, I imagine the correct approach would be re-install XCode to fix the issue.
Solution 2:
Just installed Xcode 4.3 on Lion from the app store, had the same issue with gcc, etc not installed. Fumbled around until I did the following:
in Xcode: Preferences --> Downloads With "Components" selected, you will see a list of downloadable components.
Look for Command Line Tools, and click on install. You will be prompted for your Apple Developer userid and password. After successfully authenticating, the command line tools component downloads and installs a bunch of goodness, including gcc.
Solution 3:
Download the new Xcode from the App Store and run Install XCode. It's now free, not $4.99.