I upgraded my rails version to 2.3.4 and my ruby version is 1.8.6
My gem list contained initially
RubyGems -updated 1.3.1
When i started by server (ruby script/server)
i got an error saying that my ruby gems version is low and i’ve to
upgrade it.
I uninstalled the old one and installed the new version(1.3.2)
If i start the server , still i get the error.
Then i totally uninstalled the gem and tried running the server
expecting a “gem missing” error , but the same error popped up saying
that the rubygem version is 1.3.1, and 1.3.2 is needed…
What might be the reason behind it? When i dont have a gem, how do i get
an error saying that i’ve a older version?
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.
(RubyGems.org | your community gem host)
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.
(RubyGems.org | your community gem host)
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.
(RubyGems.org | your community gem host)
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) c:/ruby/lib/ruby/site_ruby/1.8/rubygems/remote_fetcher.rb:150:in fetch_path’
c:/ruby/lib/ruby/site_ruby/1.8/rubygems/remote_fetcher.rb:157:in fetch_size' c:/ruby/lib/ruby/site_ruby/1.8/rubygems/spec_fetcher.rb:146:in legacy_repos’
c:/ruby/lib/ruby/site_ruby/1.8/rubygems/spec_fetcher.rb:138:in reject' c:/ruby/lib/ruby/site_ruby/1.8/rubygems/spec_fetcher.rb:138:in legacy_repos’
c:/ruby/lib/ruby/site_ruby/1.8/rubygems/spec_fetcher.rb:235:in warn_legacy' c:/ruby/lib/ruby/site_ruby/1.8/rubygems/commands/update_command.rb:150:in which_to_update’
c:/ruby/lib/ruby/site_ruby/1.8/rubygems/commands/update_command.rb:140:in each' c:/ruby/lib/ruby/site_ruby/1.8/rubygems/commands/update_command.rb:140:in which_to_update’
c:/ruby/lib/ruby/site_ruby/1.8/rubygems/commands/update_command.rb:75:in execute' c:/ruby/lib/ruby/site_ruby/1.8/rubygems/command.rb:136:in invoke’
c:/ruby/lib/ruby/site_ruby/1.8/rubygems/command_manager.rb:105:in process_args' c:/ruby/lib/ruby/site_ruby/1.8/rubygems/command_manager.rb:75:in run’
c:/ruby/lib/ruby/site_ruby/1.8/rubygems/gem_runner.rb:39:in
`run’
c:/ruby/bin/gem:24
=====================================
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.
Exception `NameError’ at
getaddrinfo: no address associated with hostname.
addrinfo: no address associated with hostname.
c:/ruby/lib/ruby/site_ruby/1.8/rubygems/spec_fetcher.rb:149 -
SocketError: getad
drinfo: no address associated with hostname.
(RubyGems.org | your community gem host)
ERROR: While executing gem … (Gem::RemoteFetcher::FetchError)
SocketError: getaddrinfo: no address associated with hostname.
(RubyGems.org | your community gem host)
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: