Unable to set gems

I have been doing JavaScript and some Erlang for about six months, and I have not done any Rails programs 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)

A friend of mine said: β€œ gem -v? ”, To which I answered β€œ1.3.5.” He suggested updating to 1.3.6, but I had the same problem. Then I installed some gems for testing with github .

I don’t know if I have disappeared a source or something like that, or if something has changed a lot in gems.

also:

  gem sources -a htp: //gemcutter.org/
 Error fetching htp: //gemcutter.org/:
         SocketError: getaddrinfo: The system cannot find the file specified.  (http://gemcutter.org/specs.4.8.gz)
+6
ruby rubygems gem
source share
2 answers

For Mac OSX, the solution that worked for me was:

 sudo gem install rubygems-update --source http://production.s3.rubygems.org/ sudo gem update --system --source http://production.s3.rubygems.org/ 

From some file on github of all places .

+3
source share

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

RubyForge is deprecated and can no longer work properly. Another possibility is that when you tried to do this, rubyforge or gemcutter were not available or were not available on your network. You can also try if you can get to the file on rubygems by entering it in your browser (to check your network): http://gemcutter.org/specs.4.8.gz

This question has been previously asked here: RubyGems 1.2+ index not found for:. It seems like the problem was that rubyforge was blocked by China's firewall.

Good luck

+1
source share

All Articles