Bugs item #29196, was opened at 2011-05-10 14:42
You can respond by visiting:
http://rubyforge.org/tracker/?func=detail&atid=575&aid=29196&group_id=126
Category: `gem` commands (other)
Group: None
Status: Open
Resolution: None
Priority: 3
Submitted By: Aaron Patterson (aaronp)
Assigned to: Nobody (None)
Summary: Upgrading from 1.6.1 via `gem update --system` breaks
Initial Comment:
[aaron@mobile-166-187-123-124 ~]$ ruby -v
ruby 1.9.3dev (2011-05-09 trunk 31496) [x86_64-darwin10.7.0]
[aaron@mobile-166-187-123-124 ~]$ gem update --system
Updating rubygems-update
Successfully installed rubygems-update-1.8.1
Installing RubyGems 1.8.1
/Users/aaron/.local/lib/ruby/gems/1.9.1/gems/rubygems-update-1.8.1/lib/rubygems/gem_path_searcher.rb:160:in
`<class:GemPathSearcher>': uninitialized constant
Gem::GemPathSearcher::Deprecate (NameError)
from
/Users/aaron/.local/lib/ruby/gems/1.9.1/gems/rubygems-update-1.8.1/lib/rubygems/gem_path_searcher.rb:5:in
`<top (required)>'
from /Users/aaron/.local/lib/ruby/site_ruby/1.9.1/rubygems.rb:983:in
`searcher'
from /Users/aaron/.local/lib/ruby/site_ruby/1.9.1/rubygems.rb:537:in
`find_files'
from /Users/aaron/.local/lib/ruby/site_ruby/1.9.1/rubygems.rb:1158:in
`load_plugins'
from
/Users/aaron/.local/lib/ruby/gems/1.9.1/gems/rubygems-update-1.8.1/lib/rubygems/gem_runner.rb:85:in
`<top (required)>'
from
/Users/aaron/.local/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in
`require'
from
/Users/aaron/.local/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in
`require'
from setup.rb:25:in `<main>'
[aaron@mobile-166-187-123-124 ~]$ gem env
RubyGems Environment:
- RUBYGEMS VERSION: 1.6.1
- RUBY VERSION: 1.9.3 (2011-05-09 patchlevel -1) [x86_64-darwin10.7.0]
- INSTALLATION DIRECTORY: /Users/aaron/.local/lib/ruby/gems/1.9.1
- RUBY EXECUTABLE: /Users/aaron/.local/bin/ruby
- EXECUTABLE DIRECTORY: /Users/aaron/.local/bin
- RUBYGEMS PLATFORMS:
- ruby
- x86_64-darwin-10
- GEM PATHS:
- /Users/aaron/.local/lib/ruby/gems/1.9.1
- /Users/aaron/.gem/ruby/1.9.1
- GEM CONFIGURATION:
- :update_sources => true
- :verbose => true
- :benchmark => false
- :backtrace => false
- :bulk_threshold => 1000
- "install" => "--format-executable --no-user-install"
- "gemcutter_key" => "********************************"
- :sources => ["http://gems.rubyforge.org/"]
- "update" => "--format-executable --no-user-install"
- REMOTE SOURCES:
- http://gems.rubyforge.org/
[aaron@mobile-166-187-123-124 ~]$
----------------------------------------------------------------------
>Comment By: Aaron Patterson (aaronp)
Date: 2011-05-11 15:50
Message:
Just to update:
I suck. Just trying to upgrade to rubygems 1.8.1 with a clean install of
1.9.3dev
will break. No need to install anything else.
----------------------------------------------------------------------
Comment By: Aaron Patterson (aaronp)
Date: 2011-05-11 15:42
Message:
I did this on a fresh install of 1.9.3dev:
504 ruby -v
505 cd ~/Downloads/
506 ls -tr
507 tar zxvf rubygems-1.6.1.tgz
508 cd rubygems-1.6.1
509 ls
510 ruby setup.rb
511 gem -v
512 gem update --system
513 history | tail
----------------------------------------------------------------------
Comment By: Ryan Davis (zenspider)
Date: 2011-05-11 15:18
Message:
Aaron... I can't repro at all.
----------------------------------------------------------------------
Comment By: Jon Forums (jonforums)
Date: 2011-05-11 06:56
Message:
Aaron, do you think this is caused by the same root cause I suspect in
[#29190], namely mismatched rubygems.rb wrt require 'rubygems/deprecate'
----------------------------------------------------------------------
Comment By: Steve Loveless (turboladen)
Date: 2011-05-10 19:05
Message:
While I'm not seeing the same error, I too can't upgrade from 1.6.2 or 1.7.2 to
1.8.0/1. I've tried 3 times now:
1. MRI 1.9.2, rubygems 1.7.2.
** Did `gem update --system` then `gem pristine --all --no-extensions`
2. MRI 1.9.2, rubygems 1.6.2
** Did `gem update --system` then `gem pristine --all --no-extensions`
3. MRI 1.9.2, rubygems 1.6.2
** Did `gem install rubygems-update && update_rubygems`
By doing the 1st 2, I can no longer use any `gem` commands; even just `gem`
results in a backtrace (see more
[here]{http://stackoverflow.com/questions/5932984/how-do-i-get-gem-working-again-after-upgrading-to-rubygems-1-8-x}
With the 3rd command, the upgrade just fails (with the same backtrace as the
first 2) but I'm left with a usable install, just still on rubygems 1.6.2.
Here's the backtrace:
/Users/sloveless/.rvm/gems/ruby-1.9.2-p180/gems/rubygems-update-1.8.1/lib/rubygems/specification.rb:277:in
`block in _resort!': undefined method `name' for nil:NilClass (NoMethodError)
from
/Users/sloveless/.rvm/gems/ruby-1.9.2-p180/gems/rubygems-update-1.8.1/lib/rubygems/specification.rb:276:in
`sort!'
from
/Users/sloveless/.rvm/gems/ruby-1.9.2-p180/gems/rubygems-update-1.8.1/lib/rubygems/specification.rb:276:in
`_resort!'
from
/Users/sloveless/.rvm/gems/ruby-1.9.2-p180/gems/rubygems-update-1.8.1/lib/rubygems/specification.rb:270:in
`_all'
from
/Users/sloveless/.rvm/gems/ruby-1.9.2-p180/gems/rubygems-update-1.8.1/lib/rubygems/specification.rb:402:in
`each'
from
/Users/sloveless/.rvm/gems/ruby-1.9.2-p180/gems/rubygems-update-1.8.1/lib/rubygems.rb:477:in
`map'
from
/Users/sloveless/.rvm/gems/ruby-1.9.2-p180/gems/rubygems-update-1.8.1/lib/rubygems.rb:477:in
`find_files'
from
/Users/sloveless/.rvm/gems/ruby-1.9.2-p180/gems/rubygems-update-1.8.1/lib/rubygems.rb:1061:in
`load_plugins'
from
/Users/sloveless/.rvm/gems/ruby-1.9.2-p180/gems/rubygems-update-1.8.1/lib/rubygems/gem_runner.rb:85:in
`<top (required)>'
from
/Users/sloveless/.rvm/gems/ruby-1.9.2-p180/gems/rubygems-update-1.8.1/lib/rubygems/custom_require.rb:36:in
`require'
from
/Users/sloveless/.rvm/gems/ruby-1.9.2-p180/gems/rubygems-update-1.8.1/lib/rubygems/custom_require.rb:36:in
`require'
from setup.rb:25:in `<main>'
And...
[sloveless@sloveless-mbp:pelco]$ gem env
[/Users/sloveless/.rvm/gems/ruby-1.9.2-p180/specifications/ssh_command_runner-3.0.0.gemspec]
isn't a Gem::Specification (NilClass instead).
RubyGems Environment:
- RUBYGEMS VERSION: 1.6.2
- RUBY VERSION: 1.9.2 (2011-02-18 patchlevel 180) [x86_64-darwin10.7.0]
- INSTALLATION DIRECTORY: /Users/sloveless/.rvm/gems/ruby-1.9.2-p180
- RUBY EXECUTABLE: /Users/sloveless/.rvm/rubies/ruby-1.9.2-p180/bin/ruby
- EXECUTABLE DIRECTORY: /Users/sloveless/.rvm/gems/ruby-1.9.2-p180/bin
- RUBYGEMS PLATFORMS:
- ruby
- x86_64-darwin-10
- GEM PATHS:
- /Users/sloveless/.rvm/gems/ruby-1.9.2-p180
- /Users/sloveless/.rvm/gems/ruby-1.9.2-p180@global
- GEM CONFIGURATION:
- :update_sources => true
- :verbose => true
- :benchmark => false
- :backtrace => false
- :bulk_threshold => 1000
- :sources => ["http://rubygems.org"]
- REMOTE SOURCES:
- http://rubygems.org
----------------------------------------------------------------------
You can respond by visiting:
http://rubyforge.org/tracker/?func=detail&atid=575&aid=29196&group_id=126
_______________________________________________
Rubygems-developers mailing list
http://rubyforge.org/projects/rubygems
[email protected]
http://rubyforge.org/mailman/listinfo/rubygems-developers