How to made rvm install rubygems 1.5.2 from rubygems.org instead of rubyforge
I’m experiencing some troubles when rvm try to install rubygems 1.5.2
The problem is because rvm try to install rubygems from rubyforge.org and I’m facing timeouts trying to reach the file.
If you run rvm debug you will see the current settings rvm is using, in my case:
$ rvm debug ... rubygems_1.5.1_url=http://rubyforge.org/frs/download.php/74220 rubygems_1.5.2_url=http://rubyforge.org/frs/download.php/74234 rubygems_version=1.5.2 ...
In order to instruct rvm to download rubygems from rubygems.org instead of rubyforge.org, just edit the file ~/.rvm/config/db and change the proper line:
... rubygems_1.5.1_url=http://rubyforge.org/frs/download.php/74220 #rubygems_1.5.2_url=http://rubyforge.org/frs/download.php/74234 rubygems_1.5.2_url=http://production.cf.rubygems.org/rubygems rubygems_version=1.5.2 ...
Now when I run rvm install 1.9.2, rvm will install rubygems from rubygems.org
Another approach is download manually the file rubygems-1.5.2.tgz and save it in ~/.rvm/archives folder, then rvm will use this file and won’t download it again.