I am using osx 10.8.2 installed ruby 2.0 and.... got this when trying to run \"sudo gem install rails\"
$
I had the same problem earlier, tried all of the snippets about and none of them worked out. After looking around for a bit the following worked for me:
$ rvm remove 2.0.0 # get rid of unsuccessful installation
$ rvm get head --autolibs=3 # get the latest RVM and build required libs
$ rvm requirements # just in case, install all other required stuff
$ rvm install ruby-2.0.0
$ rvm --default use ruby-2.0.0
What does rvm get head --autolibs=3
do exactly? I'm guess it automatically downloads dependencies, but I was hoping for a clear answer.