RubyGems Problem

P

Preethi Sivakumar

Hi,

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?

Please help.
Thanks
 
F

Fabian Streitel

[Note: parts of this message were removed to make it a legal post.]

instead of reinstalling rubygems you could try

gem update --system

Maybe that works

Greetz!

When i started by server (ruby script/server)
 
P

Preethi Sivakumar

Fabian said:
instead of reinstalling rubygems you could try

gem update --system
I previously tried gem update --system

It gave me this error
----------------------------------------------------------------------
Updating RubyGems
ERROR: http://gems.rubyforge.org/ does not appear to be a repository
ERROR: While executing gem ... (Gem::RemoteFetcher::FetchError)

Thats why I downloaded and installed the gems seperately.
Is there any other way to proceed?
 
L

Luis Lavena

I previously tried gem update --system

It gave me this error

This indicates a problem with a RubyForge mirror.

Please execute the same command, but add "--debug -V" at the end

That is going to provide information of the broken mirror. Then
forward or post that information here or RubyForge support forum.
Thats why I downloaded and installed the gems seperately.
Is there any other way to proceed?

An alternative is manually install RubyGems:

http://blog.mmediasys.com/2008/08/04/problems-with-rubygems-find-here-some-handy-tips/

HTH,
 
P

Preethi Sivakumar

Luis said:
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)
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.

Thanks
Preethi
 
F

Fabian Streitel

[Note: parts of this message were removed to make it a legal post.]

I'd say it's a problem with your PC

Exception `Gem::RemoteFetcher::FetchError' atc:/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)

looks like it can't connect to the server -- maybe some firewall running?

Greetz!
 
L

Luis Lavena

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.
 
R

Rick DeNatale

I'd say it's a problem with your PC

Exception `Gem::RemoteFetcher::FetchError' at
c:/ruby/lib/ruby/site_ruby/1.8/rubygems/remote_fetcher.rb:150 -

looks like it can't connect to the server -- maybe some firewall running?

That's what it looks like to me.

I'd suggest bringing up a windows command window and try to

ping gems.rubyforge.org

to test basic network things like dns resolution, which is what the
"no address" message seems to be pointing to.

--
Rick DeNatale

Blog: http://talklikeaduck.denhaven2.com/
Twitter: http://twitter.com/RickDeNatale
WWR: http://www.workingwithrails.com/person/9021-rick-denatale
LinkedIn: http://www.linkedin.com/in/rickdenatale
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,230
Members
46,819
Latest member
masterdaster

Latest Threads

Top