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
I fix that by
export CC=gcc into ~/.bash_profile,source ~/.bash_profile),rvm install 1.9.3,rvm ruby-1.9.3-rc1,gem update --system and finallygem install bundlerThe problem is with Xcode 4.2.x version. If you run rvm get head you will see this message "DO NOT use Xcode Version 4.2.x. It currently fails to build several rubies and gems...".
I don't have solution for ruby v1.8.7.
I hope it helps.