Search code examples
rubyrubygemsrbenv

gem update not working when trying to update RubyGems from 1.3.6


I am getting the following error message in the terminal when I attempt to update RubyGems from 1.3.6:

FitValet-MacBook-Pro:~ fitvalet$ rbenv -v
rbenv 0.4.0-51-ga2adc61    
FitValet-MacBook-Pro:~ fitvalet$ sudo gem update --system
Password:
Updating RubyGems
ERROR:  http://rubygems.org/ does not appear to be a repository
ERROR:  While executing gem ... (Gem::RemoteFetcher::FetchError)
timed out (http://rubygems.org/yaml)

I also tried this and got the following error:

FitValet-MacBook-Pro:~ fitvalet$ gem install rubygems-update
ERROR:  http://rubygems.org/ does not appear to be a repository
ERROR:  could not find gem rubygems-update locally or in a repository

I've looked through various answers - many are talking about a proxy server or something as in this one: How do I update Ruby Gems from behind a Proxy (ISA-NTLM). I asked a friend and he said this was not the issue, that my settings should be fine on the network.

Any ideas on how to update this would be tremendous, thank you!


Solution

  • FINALLY figured this out. I found this post gem install compass fails, can't download data from rubygems and had the same problem - Avast! antivirus software was keeping me from accessing rubygems.org through the terminal to download, even though when I pinged the server it would work fine.

    I went into avast! preferences and un-enabled the shields, and the install went through.