Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

OSX 10.8, Xcode 4.4 Make and gcc gone from environment

I just upgraded to Mountain Lion OSX 10.8 and along with that I foolishly upgraded to Xcode 4.4.

However, after this upgrade "make" is gone and things like gcc -v also do not work.

This is a big thing since I am writing my phD and I rely on make to compile my LaTeX docs...

Downloading the "command line tools"

http://adcdownload.apple.com/Developer_Tools/xcode_4.4_gm_seed/cltools10_8gmseed6938077a.dmg

Is apparently not allowed for non-paying dev accounts.

What kind of foolishness is this?

like image 763
Kris Avatar asked Jul 25 '12 16:07

Kris


3 Answers

They're not gone, they've just been relocated to inside Xcode's app bundle. This is actually nicer as it allows side by side installs of different XCode/SDK versions.

You can find them at: /Applications/Xcode.app/Contents/Developer/usr/bin

Also check out the xcode-select tool to allow you to choose the current active toolchain path.

like image 152
Mark Wang Avatar answered Nov 13 '22 13:11

Mark Wang


I did the same thing as you this morning. To fix it, I just added the following to my ~/.bash_profile:

export PATH=$PATH:/Applications/Xcode.app/Contents/Developer/usr/bin
like image 45
w2bro Avatar answered Nov 13 '22 13:11

w2bro


Interestingly,

The "Downloads" interface inside Xcode 4.4 seems to point to the following location for downloading the "Command line tools":

http://adcdownload.apple.com/Developer_Tools/xcode_4.4_gm_seed/cltools10_8gmseed6938077a.dmg

Judging by the "gm" reference in that URL I think this is an error. Without a paying dev account you cannot download this...

like image 25
Kris Avatar answered Nov 13 '22 13:11

Kris