RubyGems Problem

Discussion in 'Ruby' started by Preethi Sivakumar, Sep 18, 2009.

  1. 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
    --
    Posted via http://www.ruby-forum.com/.
    Preethi Sivakumar, Sep 18, 2009
    #1
    1. Advertising

  2. [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)
    > 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.
    >
    >
    Fabian Streitel, Sep 18, 2009
    #2
    1. Advertising

  3. Fabian Streitel 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?


    --
    Posted via http://www.ruby-forum.com/.
    Preethi Sivakumar, Sep 22, 2009
    #3
  4. Preethi Sivakumar

    Luis Lavena Guest

    On Sep 22, 5:50 am, Preethi Sivakumar <> wrote:
    > Fabian Streitel 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)
    >


    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,
    --
    Luis Lavena
    Luis Lavena, Sep 22, 2009
    #4
  5. Luis Lavena wrote:
    > On Sep 22, 5:50?am, Preethi Sivakumar <> wrote:
    >> ERROR: ?http://gems.rubyforge.org/does 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.
    (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
    --
    Posted via http://www.ruby-forum.com/.
    Preethi Sivakumar, Sep 22, 2009
    #5
  6. [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' 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)
    >


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

    Greetz!
    Fabian Streitel, Sep 22, 2009
    #6
  7. Preethi Sivakumar

    Luis Lavena Guest

    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
    Luis Lavena, Sep 22, 2009
    #7
  8. On Tue, Sep 22, 2009 at 12:36 PM, Fabian Streitel
    <> wrote:
    > 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.
    >> (http://gems.rubyforge.org/latest_specs.4.8.gz)
    >>

    >
    > 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
    Rick DeNatale, Sep 22, 2009
    #8
  9. Preethi Sivakumar, Sep 23, 2009
    #9
  10. Preethi Sivakumar

    Luis Lavena Guest

    On Sep 23, 5:49 am, Preethi Sivakumar <> 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 :)

    Cheers,
    --
    Luis Lavena
    Luis Lavena, Sep 23, 2009
    #10
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Alexey Verkhovsky
    Replies:
    1
    Views:
    216
    WATANABE Hirofumi
    Oct 5, 2004
  2. Trevor
    Replies:
    5
    Views:
    548
    Bill Kelly
    Jan 29, 2005
  3. Erik Veenstra
    Replies:
    4
    Views:
    778
    Austin Ziegler
    Feb 4, 2005
  4. Anthony Baker (ThinkBigIdeas)

    RubyGems Load Error Problem -- Any Ideas?

    Anthony Baker (ThinkBigIdeas), Feb 9, 2005, in forum: Ruby
    Replies:
    3
    Views:
    112
    AnthonyBaker
    Feb 9, 2005
  5. Eric Roscher
    Replies:
    3
    Views:
    356
    Eric Roscher
    Nov 24, 2009
Loading...

Share This Page