When compiling ruby on a colleague’s OSX machine for a legacy project, we ran into the following error:
C compiler cannot create executables
1 2 3 4 5
The reason for this is that Apple doesn’t bundle gcc for newer versions of Xcode, but instead bundles llvm-gcc. llvm-gcc is mostly compatible with gcc, but not completely [unverified source: doesn’t compile gcc itself].
You can easily install gcc-4.2 via homebrew dupes:
And then run