# Rubygems 0.9.4 problem on Ubuntu drake

**URL:** <https://www.ruby-forum.com/t/rubygems-0-9-4-problem-on-ubuntu-drake/106439>\
**Category:** Ruby\
**Created:** [June 10, 2007, 4:04pm UTC](https://www.ruby-forum.com/t/rubygems-0-9-4-problem-on-ubuntu-drake/106439 "2007-06-10T16:04:31Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ben\_Lam](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/f07891/32.png) [@Ben\_Lam](https://www.ruby-forum.com/u/Ben_Lam)\
**Post date:** [June 10, 2007, 4:04pm UTC](https://www.ruby-forum.com/t/rubygems-0-9-4-problem-on-ubuntu-drake/106439/1 "2007-06-10T16:04:31Z")

</div>

Hi all,

I’ve just installed RubyGems 0.9.4 from source (not thru apt-get  
package) under Ruby 1.8.6 (also source install) and everything went  
great.

But, upon first usage, say installing Rails via:

gem install rails --include-dependencies --debug

I’ll get a whole whackload of Exception ‘NameError’ from  
command\_manager.rb:145 - uninitialized constant  
Gem::Commands::BuildCommand (and every other possible command).

The file command\_manager.rb file (located at:  
/usr/local/lib/ruby/site\_ruby/1.8/rubygems) line 145 is doing this:

Gem::Commands.const\_get(“#{command\_name.capitalize}Command”).new

And that’s called once per command that’s defined in the commands  
directory resulting in errors like these:

Exception `NameError' at /usr/local/lib/ruby/site_ruby/1.8/rubygems/command_manager.rb:145 - uninitialized constant Gem::Commands::BuildCommand Exception `NameError’ at  
/usr/local/lib/ruby/site\_ruby/1.8/rubygems/command\_manager.rb:145 -  
uninitialized constant Gem::Commands::CertCommand  
Exception `NameError’ at  
/usr/local/lib/ruby/site\_ruby/1.8/rubygems/command\_manager.rb:145 -  
uninitialized constant Gem::Commands::CheckCommand

Here’s my rubygems environment from gems itself

RubyGems Environment:

- VERSION: 0.9.4 (0.9.4)
- INSTALLATION DIRECTORY: /usr/local/lib/ruby/gems/1.8
- GEM PATH:
  - /usr/local/lib/ruby/gems/1.8

- REMOTE SOURCES:
  - [http://gems.rubyforge.org](http://gems.rubyforge.org)

And here’s my PATH environment variable:  
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/bin/X11:/usr/games

I’m running linux under Ubuntu 6.06.1, fresh install, with Ruby 1.8.6  
compiled from source and extended with zlib library.

Anyone have any ideas of what’s going on here?

Many thanks,

Ben
