checking whether the C compiler works... no
In the Terminal:
sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer
Also, in Xcode, make sure the Command Line Tools are installed. Choose Xcode > Preferences, click on Downloads, and if necessary, click the Install button next to "Command Line Tools".
you use old RVM which does not know about latest ruby pathclevel, update with
rvm get head
Ruby is not yet fully ready for LLVM, your get best chances for compilation using osx-gcc-installer and
--with-gcc=gcc-4.2
I fixed it by running :
rvm install <ruby-version> --with-gcc=clang
Replace < ruby-version> with version you want to use