Warning: Rubygems 1.2+ Index Not Found For: Rubygems Will Revert to Legacy Indexes Degrading Performance

WARNING: RubyGems 1.2+ index not found for: RubyGems will revert to legacy indexes degrading performance

I live in China. I just tried to gem install and gem update from my pc and I got the same error. So i postulate the error is something to do with the great firewall

RubyGems 1.2+ index not found for:

I live in China. I just tried to gem install and gem update from my pc and I got the same error. So i postulate the error is something to do with the great firewall

gem install error, index not found, ruby on rails

1) Here is the answer!!!!
- slow connection

2) Solution
- move to a new connection.

-
This might not affect people in the 1st world, but I live in China and this was a huge problem as few people seem to have experienced this.

Basically the error means that the connection is to slow and gives up saying no index found. But there is not documentation or help out there on this, except for a few posts about changing gem sources, and MERB causing problems, but all that failed for me.

Rest-Client Installation not working properly

Default gem source has been changed from http://gems.rubyforge.org to http://rubygems.org

Remove rubyforge from your gem sources by doing so

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

Add rubygems to your gem sources by doing so

gem source --add http://rubygems.org

Now when you do gem sources then you will not have http://gems.rubyforge.org and http://rubygems.org should be present.

Sinatra Gem install error

rubygems.org does not seem to be responding right now. Try again later. It's probably nothing on your end.

Install a gem from a downloaded tar or zip

You can do gem build whatever.gemspec inside of the directory that you untar/unzip -- that will produce a .gem file, then do gem install whatever.gem.

You need to be at the directory where you unzip the gem file for example

C:\railsinstaller\ruby2.2.0\lib\ruby\gems\2.2.0\gems> gem install rails-5.0.0.1.gem

and that's it - you are done downloading and installing Rails.

Where are the sources for rails-2.3.5 and rack-1.0.1?

I came back two (2) hours later and:

# gem install rails -v=2.3.5 --source http://gems.rubyforge.org
Successfully installed activesupport-2.3.5
Successfully installed activerecord-2.3.5
Successfully installed rack-1.0.1
Successfully installed actionpack-2.3.5
Successfully installed actionmailer-2.3.5
Successfully installed activeresource-2.3.5
Successfully installed rails-2.3.5
7 gems installed
...

It worked.

Truly weird. It would be nice if the error messages could be a little more informative.



Related Topics



Leave a reply



Submit