I have tried to install each of the following three versions of Ruby via RVM, each with their own set of errors. I\'m more concerned with getting the last one working so I\'
This is most likely related to the gcc you are using. Have you tired to use non llvm gcc compiler? You will most likely find it under /Xcode4/usr/bin/gcc-4.2
so:
$> export CC=/Xcode4/user/bin/gcc-4.2 && rvm install 1.8.7
Hope this helps.
If you have a new install of XCode, you'll need to:
1.) open it
2.) go to: Preferences>Downloads>Command Line Tools
3.) install the Command Line Tools
4.) then run the following in Terminal:
rvm install 1.9.3 --with-gcc=clang
I used homebrew to install GCC-4.2, then symlinked it from /usr/local/bin to /usr/bin. This fixed this issue for me.
rvm install 1.9.3 --with-gcc=clang
Consider installing OSX GCC, it will solve many of the problems occurred from Xcode installation.
I had to manually download the file yaml-0.1.4.tar.gz
and place it in the proper directory for rvm.
The failure for me was curl could not get the file and the error had to do with a failed certificate check. I have GCC-10.7-v2.pkg
installed so the C compiler can do its work because my newer version of Xcode did not have GCC
included.