Skip to content

Instantly share code, notes, and snippets.

@sgharms
Created March 10, 2011 02:45
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sgharms/863485 to your computer and use it in GitHub Desktop.
Save sgharms/863485 to your computer and use it in GitHub Desktop.
why can't I upgrade?
sgharms@stharms-mac:~/gitcheckouts/rdoc$ rake test
e(in /Users/sgharms/gitcheckouts/rdoc)
rake aborted!
undefined method `plugin' for Hoe:Class
/Users/sgharms/gitcheckouts/rdoc/Rakefile:5:in `<top (required)>'
(See full trace by running task with --trace)
sgharms@stharms-mac:~/gitcheckouts/rdoc$ gem install hoe-git
ERROR: Error installing hoe-git:
hoe requires RubyGems version >= 1.4. Try 'gem update --system' to update RubyGems itself.
sgharms@stharms-mac:~/gitcheckouts/rdoc$ gem update --system
Updating RubyGems
Updating rubygems-update
Successfully installed rubygems-update-1.6.2
Updating RubyGems to 1.6.2
Installing RubyGems 1.6.2
/Users/sgharms/.rvm/gems/ruby-1.9.2-rc2/gems/rubygems-update-1.6.2/lib/rubygems/gem_runner.rb:84:in `<top (required)>': undefined method `load_plugins' for Gem:Module (NoMethodError)
from setup.rb:25:in `require'
from setup.rb:25:in `<main>'
sgharms@stharms-mac:~/gitcheckouts/rdoc$
@dcadenas
Copy link

could you solve this?

@sgharms
Copy link
Author

sgharms commented Mar 10, 2011

No, I bounced around in some sort of dependency loop. We discussed it at a Ruby hack night last night and the idea was suggested that I try using 1.9.1 to see if I could get around the issue (on the theory that 1.9.2 is not "quite done"). What's your experience?

@dcadenas
Copy link

hmmm almost the same as you, I will try with 1.9.1 too.
My problem started with ruby-1.9.2-p0 and then I tried again with ruby-1.9.2-rc2 with no luck. I'll keep you updated if I find a solution.

@dcadenas
Copy link

Steven it's working for me on ruby-1.9.2-p136, thanks for your help

@sgharms
Copy link
Author

sgharms commented Mar 14, 2011

Confirmed, your solution of using 1.9.2-p136 fixes this issue. I wonder if it is a bug in hoe that needs to be reported.

@inkredabull
Copy link

This came in quite handy ;-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment