Just sudo gem update to get the latest version and you're good to go.
ruby - Ruby itself is prerequisite in order to build Ruby 1.9. It can be 1.8.
http://rvm.beginrescueend.com/rvm/install/
http://rvm.beginrescueend.com/deployment/system-wide/