From: Luis Lavena Date: 2009-09-23T02:20:05+09:00 Subject: Re: RubyGems Problem On Sep 22, 2:51 pm, Preethi Sivakumar wrote: > Luis Lavena wrote: > > On Sep 22, 5:50?am, Preethi Sivakumar wrote: > >> ERROR: ?http://gems.rubyforge.org/doesnot appear to be a repository > >> ERROR: ?While executing gem ... (Gem::RemoteFetcher::FetchError) > > > This indicates a problem with a RubyForge mirror. > > I ran the command with the debug option and i got this error trace > =========================================================================== == > > Exception `NameError' at > c:/ruby/lib/ruby/site_ruby/1.8/rubygems/command_manager.rb:134 - > uninitialized constant Gem::Commands > ::UpdateCommand > Updating RubyGems > Exception `Gem::LoadError' at > c:/ruby/lib/ruby/site_ruby/1.8/rubygems.rb:636 - RubyGem version error: > sources(0.0.1 not > 0.0. > 1) > > Exception `SocketError' at c:/ruby/lib/ruby/1.8/net/http.rb:564 - > getaddrinfo: no address associated with hostname. > Exception `Gem::RemoteFetcher::FetchError' at > c:/ruby/lib/ruby/site_ruby/1.8/rubygems/remote_fetcher.rb:150 - > SocketError: get > addrinfo: no address associated with hostname. > (http://gems.rubyforge.org/latest_specs.4.8.gz) > Exception `SocketError' at c:/ruby/lib/ruby/1.8/net/http.rb:564 - > getaddrinfo: no address associated with hostname. > Exception `Gem::RemoteFetcher::FetchError' at > c:/ruby/lib/ruby/site_ruby/1.8/rubygems/remote_fetcher.rb:150 - > SocketError: get > addrinfo: no address associated with hostname. > (http://gems.rubyforge.org/specs.4.8.gz) > Exception `SocketError' at c:/ruby/lib/ruby/1.8/net/http.rb:564 - > getaddrinfo: no address associated with hostname. > Exception `Gem::RemoteFetcher::FetchError' at > c:/ruby/lib/ruby/site_ruby/1.8/rubygems/remote_fetcher.rb:150 - > SocketError: get > addrinfo: no address associated with hostname. > (http://gems.rubyforge.org/yaml) > ERROR:  http://gems.rubyforge.org/does not appear to be a repository > Exception `Gem::RemoteFetcher::FetchError' at > c:/ruby/lib/ruby/site_ruby/1.8/rubygems/spec_fetcher.rb:149 - > SocketError: getad > drinfo: no address associated with hostname. > (http://gems.rubyforge.org/yaml) > ERROR:  While executing gem ... (Gem::RemoteFetcher::FetchError) >     SocketError: getaddrinfo: no address associated with hostname. > (http://gems.rubyforge.org/yaml) Looks like it cannot resolve the address.. "ping gems.rubyforge.org" resolves to which IP? > ===================================== > I'm not able to identify whether this is the problem with Mirror or my > system's ruby configuration. > > If it is the problem with my PC please help how to solve it. Just curious, are you behind an HTTP PROXY? Also, please update your version of RubyGems manually first: http://blog.mmediasys.com/2008/08/04/problems-with-rubygems-find-here-some-handy-tips/ And after that, please re-run the same command. Looks like you're in Windows, which make me wonder which version did you installed? "gem env" will fill the gaps of missing information for us to help you. -- Luis Lavena