Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

ruby

rubygems

WARNING: RubyGems 1.2+ index not found for:

RubyGems will revert to legacy indexes degrading performance.

If anyone can walk me through this problem I will give them $50.00

I've exhausted google, have reinstalled everything.

All i want to to is

gem install ...

that's it

like image 613
thenengah Avatar asked Dec 07 '09 03:12

thenengah


2 Answers

remove the culprit URL.

in my case, I am on Centos 5.4 and the full error message I am getting is:

root# gem install rack
WARNING:  RubyGems 1.2+ index not found for:
    http://rubyworks.rubyforge.org/redhat/5/GEMS/x86_64/

RubyGems will revert to legacy indexes degrading performance.
ERROR:  could not find gem rack locally or in a repository
root#

Solution: edit your .gemrc and remove the address that makes it fails.

try again and remove the next broken url if any until it_just_works(tm);

more it, the one above was the only one.

see the content of my .gemrc config file.

root# cat .gemrc 
--- 
:verbose: true
:bulk_threshold: 1000
:benchmark: false
:update_sources: true
:backtrace: false
:disabledsources: 
- http://rubyworks.rubyforge.org/redhat/5/GEMS/x86_64/
:sources: 
- http://gems.rubyforge.org
- http://gems.github.com
- http://gems.rubyforge.org
- http://gems.github.com/
- http://gems.rubyonrails.org/
root# pwd
/root
root# 

Et Voila!

you would be very kind to paypal 50$ to my email address as promised.

thanks

like image 56
user192645 Avatar answered Nov 19 '22 08:11

user192645


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

like image 24
thenengah Avatar answered Nov 19 '22 09:11

thenengah