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

Randy Parker randy.j.parker at gmail.com
Thu Jul 23 10:01:43 EDT 2009


> Eric wrote:
> Looks like you have some kind of network issue
I've had the same update behavior
100% of the time for almost a month using 2 different connections
located 10 miles apart.  One is Comcast, the other is a CBeyond
T1.   And don't forget that 3 out of 4 of the guys in the Atlanta Ruby
Users Group that responded to my IRC request for confirmation reported
the exact same problem.  The probability of a network problem whose
sole manifestation is "gem update" is very low.

 > Can you run:  $ sudo gem update -V --debug

~ $ gem --version
1.3.5


~ $ sudo gem update -V --debug
Password:
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
GET 200 OK: http://gems.github.com/latest_specs.4.8.gz
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)
Error fetching remote data: Errno::EPIPE: Broken pipe (
http://gems.rubyforge.org/quick/Marshal.4.8/crack-0.1.4.gemspec.rz)
Falling back to local-only install
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


-- Randy Parker
http://mobiledyne.com


More information about the Rubygems-developers mailing list