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
So nuking RVM (rvm implode) and reinstalling didn't make any difference. I ended up installing Xcode 4.2 and then installing the GCC compilers after which overrides the Xcode compilers.
Here are the steps for those Googling this.
Install Xcode 4.2.x
Install GCC standalone compilers from https://github.com/kennethreitz/osx-gcc-installer
Note: Xcode 4.3 beta was recently released. I'm testing if this fixes the compilation issues.