I\'m getting an error after compiling Ruby 1.8.7 using RVM on Lion 10.7.1 with Xcode 4.2 GM (new MacBook).
It compiles fine but when I try to install any gem I get t
You can download find stand alone GCC installer instructions here: https://github.com/kennethreitz/osx-gcc-installer
This gives you a non llvm based gcc installation without having to mess around with Xcode.
You can then use the command
export CC=/usr/bin/gcc-4.2
This allows you to have the latest X Code for OSX purposes and still have a happy gcc version for ruby.