Monthly Archives: February 2012

GCC in Mac OS X 10.8 Mountain Lion – Xcode 4.3 / Xcode 4.4

Hah! So since I’m a registered developer, I installed the preview version of Mac OS X 10.8 Mountain Lion and of course Xcode 4.4 developer preview.

The operating system is stable as hell Lion, although Safari doesn’t like to parse RSS feeds ;-)

Today I wanted to compile the latest yarick release to do some simulations in quantum physics and discovered that neither cc nor gcc are located in “/usr/bin”. Instead they’re now inside the folder (which is normally located in “/Applications”).

Well, you can set the $PATH variable of your BASH/CSH-enviroment with (for bash):
export PATH=/Applications/$PATH
Just put that line into your .profile or .bash_profile and you’re fine.

Unfortunately you’re not fine at all, if you need the “non-llvm”-version of gcc. This has disappeared in Mountain Lion. Hah! Get MacPorts and install the gnu-gcc if you need it ;-)