sstephenson/ruby-build — Issue #62: GCC error on Lion 10.7.2 and XCode 4.2 fresh install
Author: wsouto
Created: 2011-10-14 21:33:33+00:00
State: open

Seems that latest XCode 4.2 don't install (non-llvm) gcc-4.2 anymore.

$ ls -l /usr/bin | grep gcc

lrwxr-xr-x 1 wsouto wheel 12B 14 Out 17:55 cc -> llvm-gcc-4.2
lrwxr-xr-x 1 wsouto wheel 12B 14 Out 17:55 gcc -> llvm-gcc-4.2
lrwxr-xr-x 1 wsouto admin 52B 14 Out 17:55 i686-apple-darwin11-llvm-g++-4.2 -> ../llvm-gcc-4.2/bin/i686-apple-darwin11llvm-g++-4.2
lrwxr-xr-x 1 wsouto admin 52B 14 Out 17:55 i686-apple-darwin11-llvm-gcc-4.2 -> ../llvm-gcc-4.2/bin/i686-apple-darwin11-llvm-gcc-4.2
lrwxr-xr-x 1 wsouto admin 32B 14 Out 17:55 llvm-cpp-4.2 -> ../llvm-gcc-4.2/bin/llvm-cpp-4.2
lrwxr-xr-x 1 wsouto admin 32B 14 Out 17:55 llvm-g++ -> ../llvm-gcc-4.2/bin/llvm-g++-4.2
lrwxr-xr-x 1 wsouto admin 32B 14 Out 17:55 llvm-g++-4.2 -> ../llvm-gcc-4.2/bin/llvm-g++-4.2
lrwxr-xr-x 1 wsouto admin 32B 14 Out 17:55 llvm-gcc -> ../llvm-gcc-4.2/bin/llvm-gcc-4.2
lrwxr-xr-x 1 wsouto admin 32B 14 Out 17:55 llvm-gcc-4.2 -> ../llvm-gcc-4.2/bin/llvm-gcc-4.2

Installing the [osx-gcc-installer](https://github.com/kennethreitz/osx-gcc-installer.git) solves the problem for now.

This info might be useful for someone...