1

I'm trying to install rails on a new machine and am running to the following command issue:

gem install rails
ERROR:  Could not find a valid gem 'rails' (>= 0), here is why:
          Unable to download data from http://gems.rubyforge.org/ - Errno::ETIMEDOUT: Operation timed out - connect(2) (http://gems.rubyforge.org/latest_specs.4.8.gz)
locoboy
  • 38,002
  • 70
  • 184
  • 260

3 Answers3

9

rubyforge.org was deprecated in favor of rubygems.org -- quite a while ago, this is nothing new. But you are stuck with an old source, i was too, just updated.

You probably want to do the following, first remove rubyforge.org as a source:

gem source -r http://gems.rubyforge.org

Next add rubygems.org as a source

gem source -a http://rubygems.org

Now do a gem update:

gem update --system

Check to see which version of gem you are running:

gem -v

Should be on 2.0.6 (or greater).

Good to go!

ipd
  • 5,674
  • 3
  • 34
  • 49
  • 1
    Thank you! This problem has plagued me for a year and after having removed both rubyforge and rails sources, the gem script now functions once again. Can't express how glad I am for having this plague cured :) – Jojje Aug 03 '13 at 02:30
1

RubyForge was down today. :)

See here.

Aaron Gray
  • 11,283
  • 7
  • 55
  • 61
1

You could not reach the gems server. Could be many things but you can find the status of RubyForge here: http://status.rubygems.org/

Ric Pruss
  • 406
  • 3
  • 7