Ruby – Error installing Ruby with RVM (fails installing RubyGems)

rubyrubygemsrvm

I'm trying to install Ruby 1.9.3 via RVM. However, when it gets to the point of installing RubyGems, I get this:

curl: (22) The requested URL returned error: 404 The requested url
does not exist:
'http://production.cf.rubygems.org/rubygems/rubygems-.tgz' Trying
ftp:// URL instead.

% Total % Received % Xferd Average Speed Time Time Time
Current
Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 –:–:– 0:05:00
–:–:– 0curl: (28) connect() timed out!

There was an error, please check
/home/jjw0c4/.rvm/log/ruby-1.9.3-p125/*.log

There has been an error while trying to fetch the source.
Halting the installation.

My guess is the URL "/rubygems-.tgz", shouldn't there be a version number on the end?

Best Answer

This was a bug in the earlier version of RVM.

Update RVM:

rvm get stable # OR:
rvm get head   # OR if none worked:
curl -L get.rvm.io | bash -s stable

The installer also does update (in fact latest rvm get ... just calls the installer)