Why can’t I install Rails on Lion using RVM?

Fixed it!

The answer was actually on one of the links I posted above. Before installing a version of ruby (rvm install 1.8.7) I needed to run “export CC=/usr/bin/gcc-4.2“. With that in place, everything ran smoothly.

If you don’t want to have CC permanently exported, you can do CC=/usr/bin/gcc-4.2 rvm install 1.8.7

If you have already installed ruby 1.8.7. Just do CC=/usr/bin/gcc-4.2 rvm reinstall 1.8.7

Leave a Comment