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 sogem 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
How to Test Strong Params with Rspec
Sorting a Multidimensional Array in Ruby
How to Have Two Columns in One Table Point to The Same Column in Another with Activerecord
Static Page Routing in Sinatra (Ruby)
Get Value from String Representing Local Variable
Waiting for Ruby Child Pid to Exit
Ruby Readline Fails If Process Started with Arguments
Where Are Keywords Defined in Ruby
Sinatra on Nginx Configuration - What's Wrong
How to Change "3 Errors Prohibited This Foobar from Being Saved" Validation Message in Rails
Ruby/Rails 3.1: Given a Url String, Remove Path
Ruby: How to Escape Url with Square Brackets [ and ]
Hw Impossibility: "Create a Rock Paper Scissors Program in Ruby Without Using Conditionals"
Gem Install Rmagick Fails on Os X El Capitan
Problem with Vim's Ruby Plugin
Why The Unit Test Frameworks in Fortran Rely on Ruby Instead of Fortran Itself