tags:

views:

503

answers:

1

Ok here is the background, I have been doing JavaScript and some Erlang for around 6 months and I haven't done any rails programming lately. Today on my new PC I went to install rails but got this error:

gem install rails WARNING: RubyGems 1.2+ index not found for: http://gems.rubyforge.org/

RubyGems will revert to legacy indexes degrading performance. Bulk updating Gem source index for: htp://gems.rubyforge.org/ ERROR: While executing gem ... (Gem::RemoteSourceException) Error fetching remote gem cache: SocketError: getaddrinfo: The system cannot find the file specified. (http://gems.rubyforge.org/yaml)

So a friend of mine says: "gem -v?" to which I respond 1.3.5, then he suggests I update to 1.3.6 but I got the same problem, then I installed a few gems for testing purposes from github (http://gems.github.com/).

The thing I don't know if I'm missing a source or something or if something changed drastically in gems, anyway lend me a hand guys/girls.

Oh btw... gem sources -a htp://gemcutter.org/ Error fetching htp://gemcutter.org/: SocketError: getaddrinfo: The system cannot find the file specified. (h ttp://gemcutter.org/specs.4.8.gz)

Yeah cut a 't' from the 'http' because I'm new and I can only post one link so forgive me for that one.

A: 

Try reinstalling rubygems from scratch here: http://rubygems.org/pages/download

RubyForge has been deprecated and may no longer be working properly. The other possibility is that when you tried to do this rubyforge or gemcutter was down, or otherwise not accessible over your network. You can also try seeing if you can reach the file on rubygems by entering it in your browser (to test your network): http://gemcutter.org/specs.4.8.gz

This question has previously been asked here: http://stackoverflow.com/questions/1857306/rubygems-1-2-index-not-found-for. It appears the problem was that rubyforge was blocked by China's firewall.

Good luck!

Gdeglin
Hmm aparently it is a network problem, can't access http://gemcutter.org/specs.4.8.gz , nor rubygems.org, browsers says it can't find the server.I read similar questions and they did mention a slow connection problem, maybe that's it.
It's more likely that the server is blocked on your network, or you have a network configuration problem. Even a slow connection would eventually be able to access the file through a web browser.
Gdeglin