I tried to install Ruby 2 using RVM today and it failed. I updated RVM, all my brew formulas and whatnot. This is what I get:
admin:/$ rvm install ruby-2.0.0
Remove lines with 'rvm_autolibs_flag=' from '/etc/rvmrc', please clean it manually, then
rvm get stable
rvm autolibs enable
rvm install ruby || rvm install ruby --with-gcc=clang
Make sure to install latest version of Command Line Tools for Xcode
and follow this instruction:
rvm get stable
rvm autolibs enable
rvm install ruby || rvm install ruby --with-gcc=clang