When I run
rvm install 1.9.3 --with-gcc=clang
on Mac OSX Lion, ruby does not compile, and I get the following error in (.rvm/log/ruby-1.9.3
I solved this using Macports.
I had problems compiling and were getting the error "Ruby 'ruby-1.9.3-p374' was built using clang - but it's not (fully) supported, expect errors."
Github was also down for maintenance so I couldnt try compiling using brew as suggested in the previous answer... This is what I did, and it compiled fine on Mountain Lion 10.8.2:
First install Macports
http://www.macports.org/install.php
Then run:
sudo port selfupdate
sudo port install apple-gcc42
sudo rvm install ruby-1.9.3-p374 --with-gcc=gcc-apple-4.2