I need to use Xcode on this machine, so standalone gcc was not going to do this for me.
On other posters, I followed the suggestions at the end of the RVM update release notes.
Note. I did not need to remove the RVM. I managed to uninstall Xcode 4.2.1 (completely) and reinstall Xcode 4.1, and then do the trick CC=/usr/bin/gcc-4.2 rvm install 1.8.7 . In my case, I put export CC="/usr/bin/gcc-4.2" in my profile in order to preserve some typing, as well as configure various gems.
It also worked on Ruby Enterprise Edition (ree-1.8.7-2011.03), which also failed.
chaupt Nov 29 '11 at 9:39
source share