broken gems uninitialized constant Gem::CommandManager (Nam

D

Dave Tilley

I am a ruby newbie. Somehow (I suspect with a gem update command) I have
broken
gems on my mac (running leopard).


Now if I use any gem command I get the same error

Macintosh:~ dtilley$ gem query --remote
/usr/lib/ruby/1.8/rubygems/gem_runner.rb:18:in `initialize':
uninitialized constant Gem::CommandManager (NameError)
from /usr/local/bin/gem:22:in `new'
from /usr/local/bin/gem:22


1) Has anybody seen this?
2) Do I need to uninstall gems and reinstall it?

Thanks

Dave
 
B

bbiker

I am a ruby newbie. Somehow (I suspect with a gem update command) I have
broken
gems on my mac (running leopard).

Now if I use any gem command I get the same error

Macintosh:~ dtilley$ gem query --remote
/usr/lib/ruby/1.8/rubygems/gem_runner.rb:18:in `initialize':
uninitialized constant Gem::CommandManager (NameError)
  from /usr/local/bin/gem:22:in `new'
  from /usr/local/bin/gem:22

1) Has anybody seen this?
2) Do I need to uninstall gems and reinstall it?

Thanks

Dave

The proper syntax

gem query -n <gemname> --remote
 
E

Eric Hodel

I am a ruby newbie. Somehow (I suspect with a gem update command) I
have
broken
gems on my mac (running leopard).


Now if I use any gem command I get the same error

Macintosh:~ dtilley$ gem query --remote
/usr/lib/ruby/1.8/rubygems/gem_runner.rb:18:in `initialize':
uninitialized constant Gem::CommandManager (NameError)
from /usr/local/bin/gem:22:in `new'
from /usr/local/bin/gem:22


1) Has anybody seen this?
2) Do I need to uninstall gems and reinstall it?

Looks like you're using an older `gem` executable with a newer
RubyGems runtime.

Also, your paths don't match. RubyGems would install `gem` into /usr/
bin when installing into /usr/lib/. Try /usr/bin/gem. If that works,
remove /usr/local/bin/gem. It must be a relic from an alternate
install.
 
D

Dave Tilley

Eric said:
Looks like you're using an older `gem` executable with a newer
RubyGems runtime.

Also, your paths don't match. RubyGems would install `gem` into /usr/
bin when installing into /usr/lib/. Try /usr/bin/gem. If that works,
remove /usr/local/bin/gem. It must be a relic from an alternate
install.

Thanks for the replies. I ended up reinstalling gems and now things
work.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,535
Members
45,007
Latest member
obedient dusk

Latest Threads

Top