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