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

Eric Hodel drbrain at segment7.net
Wed Jul 22 18:06:40 EDT 2009


On Jul 22, 2009, at 06:58, Randy Parker wrote:

> 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
> ~ $

Looks like you have some kind of network issue.  Can you run:

$ sudo gem update -V --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
GET 200 OK: http://gems.rubyforge.org/latest_specs.4.8.gz
Updating ZenTest
Installing gem ZenTest-4.1.3
Downloading gem ZenTest-4.1.3.gem
Exception `EOFError' at /System/Library/Frameworks/Ruby.framework/ 
Versions/1.8/usr/lib/ruby/1.8/net/protocol.rb:133 - end of file reached
Exception `EOFError' at /System/Library/Frameworks/Ruby.framework/ 
Versions/1.8/usr/lib/ruby/1.8/net/protocol.rb:120 - end of file reached
connection reset after 2 requests, retrying
GET 302 Found: http://gems.rubyforge.org/gems/ZenTest-4.1.3.gem
GET 200 OK: http://gems.rubyforge.vm.bytemark.co.uk/gems/ZenTest-4.1.3.gem
[...installs OK]


More information about the Rubygems-developers mailing list