[Rubygems-developers] 'gem update' Fails, but 'gem update X' Works

Randy Parker randy.j.parker at gmail.com
Wed Jul 22 09:58:11 EDT 2009


Louis asked:
> Please provide the output of sudo gem update X --debug
> ...
> so in that way we can see if: the problems are the quick
> indexes, the contact to the mirror, unpacking issues, etc.


~ $ sudo gem update --debug
Exception `NameError' at
/Library/Ruby/Site/1.8/rubygems/command_manager.rb:161 - uninitialized
constant Gem::Commands::UpdateCommand
Exception `Gem::LoadError' at /Library/Ruby/Site/1.8/rubygems.rb:827 - Could
not find RubyGem test-unit (>= 0)

Updating installed gems
Updating crack
Exception `Errno::EPIPE' at
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/net/protocol.rb:175
- Broken pipe
Exception `Gem::RemoteFetcher::FetchError' at
/Library/Ruby/Site/1.8/rubygems/remote_fetcher.rb:172 - Errno::EPIPE: Broken
pipe (http://gems.rubyforge.org/quick/Marshal.4.8/crack-0.1.4.gemspec.rz)
Exception `Gem::RemoteFetcher::FetchError' at
/Library/Ruby/Site/1.8/rubygems/spec_fetcher.rb:76 - Errno::EPIPE: Broken
pipe (http://gems.rubyforge.org/quick/Marshal.4.8/crack-0.1.4.gemspec.rz)
Exception `Gem::GemNotFoundException' at
/Library/Ruby/Site/1.8/rubygems/dependency_installer.rb:200 - could not find
gem crack locally or in a repository
ERROR:  While executing gem ... (Gem::GemNotFoundException)
    could not find gem crack locally or in a repository
/Library/Ruby/Site/1.8/rubygems/dependency_installer.rb:200:in
`find_spec_by_name_and_version'
/Library/Ruby/Site/1.8/rubygems/dependency_installer.rb:213:in `install'
/Library/Ruby/Site/1.8/rubygems/commands/update_command.rb:87:in `execute'
/Library/Ruby/Site/1.8/rubygems/commands/update_command.rb:81:in `each'
/Library/Ruby/Site/1.8/rubygems/commands/update_command.rb:81:in `execute'
/Library/Ruby/Site/1.8/rubygems/command.rb:257:in `invoke'
/Library/Ruby/Site/1.8/rubygems/command_manager.rb:132:in `process_args'
/Library/Ruby/Site/1.8/rubygems/command_manager.rb:102:in `run'
/Library/Ruby/Site/1.8/rubygems/gem_runner.rb:58:in `run'
/usr/bin/gem:21
~ $


More information about the Rubygems-developers mailing list