Gem command works locally, not on remote machine



I'm having some trouble with the gem command. On my local MacBook Pro
the gem command works fine...

$ sudo gem outdated
Password:

....just returns nothing, as expected.

$ sudo gem update --system
Updating RubyGems
Nothing to update
$

On my CentOS 5 VPS I get a completely different response...

$ su -
# gem outdated
Bulk updating Gem source index for: http://gems.rubyforge.org

And it just stops there without returning to the command prompt. Same
deal with any gem subcommand I try.

Local gem environment:

- RUBYGEMS VERSION: 1.2.0
- RUBY VERSION: 1.8.6 (2007-03-13 patchlevel 0) [universal-
darwin8.0]
- INSTALLATION DIRECTORY: /usr/local/lib/ruby/gems/1.8
- RUBY EXECUTABLE: /usr/local/bin/ruby
- EXECUTABLE DIRECTORY: /usr/local/bin
- RUBYGEMS PLATFORMS:
- ruby
- universal-darwin-8
- GEM PATHS:
- /usr/local/lib/ruby/gems/1.8
- GEM CONFIGURATION:
- :update_sources => true
- :verbose => true
- :benchmark => false
- :backtrace => false
- :bulk_threshold => 1000
- :sources => ["http://gems.rubyforge.org/";, "http://
gems.github.com"]
- REMOTE SOURCES:
- http://gems.rubyforge.org/
- http://gems.github.com

Remote:

gem environment
RubyGems Environment:
- RUBYGEMS VERSION: 1.0.1 (1.0.1)
- RUBY VERSION: 1.8.6 (2008-03-03 patchlevel 114) [x86_64-linux]
- INSTALLATION DIRECTORY: /usr/local/lib/ruby/gems/1.8
- RUBY EXECUTABLE: /usr/local/bin/ruby
- RUBYGEMS PLATFORMS:
- ruby
- x86_64-linux
- GEM PATHS:
- /usr/local/lib/ruby/gems/1.8
- GEM CONFIGURATION:
- :update_sources => true
- :verbose => true
- :benchmark => false
- :backtrace => false
- :bulk_threshold => 1000
- REMOTE SOURCES:
- http://gems.rubyforge.org

OK, the remote version is 1.0.1 and local is 1.2.0. I tried to upgrade
RubyGems by running...

gem update --system

but it froze without returning as described above.

Any ideas why this would be? Any suggestions for how to get gems
working?

Thanks,

E

.



Relevant Pages

  • [ANN] RubyGems 1.1.0
    ... RubyGems now uses persistent connections on index updates. ... `gem spec` now extracts specifications from .gem files. ... Executable stubs now use ruby install name in shebang. ...
    (comp.lang.ruby)
  • [ANN] RubyGems 1.3.0
    ... Some versions of RubyGems have a bug that will prevent ... $ gem install rubygems-update ... install a new RubyGems through the same packaging system. ...
    (comp.lang.ruby)
  • Re: gem & require -> returns false?
    ... Gem goes to load active_record and cannot find it, ... is an active_record file in a gem named 'activerecord'. ... again, but since the gem was activated with autorequire, the file is already ... (I've CC'ed the rubygems list to make sure everyone there sees this as well). ...
    (comp.lang.ruby)
  • [ANN] RubyGems Beta 0.9.4.6
    ... RubyGems 0.9.4.6 is a beta release for the upcoming 0.9.5 which adds several new features and fixes several bugs. ... `gem env` output will be helpful in diagnosing the issue. ...
    (comp.lang.ruby)
  • Re: Rubygems 0.9.5 and fastthread mswin32 gem
    ... RubyGems 0.9.5 is broken for mswin32. ... gem install is trying to install the ruby version of all these gems ... Now the old versions have ruby as a platform. ...
    (comp.lang.ruby)