Monday, August 5, 2013

When RVM can't fetch from http://ftp.ruby-lang.org/

I wanted to install Ruby 1.9.2.  Easy, I thought, that's as simple as rvm install 1.9.2.  Unfortunately, it looks like http://ftp.ruby-lang.org/ is having a bad day.

http://rvm.io/rvm/offline provides helpful instructions assuming you are starting with nothing.  I already have several Ruby versions installed, so my process was reduced to:

$ curl -L http://www.mirrorservice.org/sites/ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.2-p320.tar.bz2 -o ruby-1.9.2-p320.tar.bz2
$ mv ruby-1.9.2-p320.tar.bz2 ~/.rvm/archives/
$ rvm install 1.9.2-p320 --disable-binary
$ rvm use ruby-1.9.2 --default

Not too shabby! Many thanks to the RVM team.