RubyGems Problem

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

instead of reinstalling rubygems you could try

gem update --system

Maybe that works

Greetz!

When i started by server (ruby script/server)

Fabian S. wrote:

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?

On Sep 22, 5:50 am, Preethi S. [email protected] wrote:

ERROR: RubyGems.org | your community gem host not appear to be a repository
ERROR: While executing gem … (Gem::RemoteFetcher::FetchError)

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,

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 -

SocketError: get
addrinfo: no address associated with hostname.
(RubyGems.org | your community gem host)

looks like it can’t connect to the server – maybe some firewall
running?

Greetz!

Luis L. wrote:

On Sep 22, 5:50?am, Preethi S. [email protected] wrote:

ERROR: ?RubyGems.org | your community gem host not 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.
(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.

Thanks
Preethi

On Sep 22, 2:51 pm, Preethi S. [email protected] wrote:

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:

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.

Hi,

Just curious, are you behind an HTTP PROXY?
Yes I was behind a Proxy and Firewall was creating the problem.

Also, please update your version of RubyGems manually first:

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

This link was of great help! Thanks. Now I have updated my gems version
manually and it worked!

Thanks much
Preethi.

On Tue, Sep 22, 2009 at 12:36 PM, Fabian S.
[email protected] wrote:

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

On Sep 23, 5:49 am, Preethi S. [email protected] wrote:

Hi,

Just curious, are you behind an HTTP PROXY?

Yes I was behind a Proxy and Firewall was creating the problem.

Please read RubyGems HTTP Proxy options to make it work in the future:

http://rubygems.org/read/chapter/13

(or the inlined help (gem help)

Also, please update your version of RubyGems manually first:

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

This link was of great help! Thanks. Now I have updated my gems version
manually and it worked!

Good to know :slight_smile:

Cheers,