[Rubygems-developers] uninitialized constant Gem::CommandManager::HelpCommand (NameError)

Yvon Thoraval yvon_thoraval at mac.com
Tue Nov 14 11:27:33 EST 2006


Hey all,

after updating ruby (1.8.5_1) with MacPORT i can't even list  
available gems because i get :

  gem list
/opt/local/lib/ruby/site_ruby/1.8/rubygems/cmd_manager.rb:52:in  
`initialize': uninitialized constant Gem::CommandManager::HelpCommand  
(NameError)
         from /opt/local/lib/ruby/site_ruby/1.8/rubygems/ 
cmd_manager.rb:46:in `new'
         from /opt/local/lib/ruby/site_ruby/1.8/rubygems/ 
cmd_manager.rb:46:in `instance'
         from /opt/local/lib/ruby/site_ruby/1.8/rubygems/ 
gem_runner.rb:25:in `run'
         from /opt/local/bin/gem:23

i've the following env vars related to ruby/rubygems :

$   env | grep GEM
GEM_HOME=/opt/local/lib/ruby/gems/1.8
RGEM_HOME=/opt/local/lib/ruby/gems/1.8  // (sort of backup copy of  
GEM_HOME)
JGEM_HOME=/Users/yvon/SVN/jruby/lib/ruby/gems/1.8   // used by JRuby
JRUBYGEMS=/Users/yvon/SVN/jruby/lib/ruby/site_ruby/1.8  // used by JRuby

notice my hand install of rubygems under JRuby is working fine.

$  gem env
/opt/local/lib/ruby/site_ruby/1.8/rubygems/cmd_manager.rb:52:in  
`initialize': uninitialized constant Gem::CommandManager::HelpCommand  
(NameError)
         from /opt/local/lib/ruby/site_ruby/1.8/rubygems/ 
cmd_manager.rb:46:in `new'
         from /opt/local/lib/ruby/site_ruby/1.8/rubygems/ 
cmd_manager.rb:46:in `instance'
         from /opt/local/lib/ruby/site_ruby/1.8/rubygems/ 
gem_runner.rb:25:in `run'
         from /opt/local/bin/gem:23


$ gem list --local

same error as before.

$ echo $RUBYOPT
rubygems

$  echo $RUBYLIB
/opt/local/lib/ruby/:/opt/local/lib/ruby/site_ruby/1.8

$ which ruby
/opt/local/bin/ruby

$ which gem
/opt/local/bin/gem

how could I get rubygems working back ?

best

Yvon


More information about the Rubygems-developers mailing list