On May 22, 2010, at 13:49 , Gregory Brown wrote:

> Bug #3332: r27953: gem install causes "uninitialized constant Gem::Commands::InstallCommand"
> http://redmine.ruby-lang.org/issues/show/3332
> 
> Author: Gregory Brown
> Status: Open, Priority: Normal
> ruby -v: ruby 1.9.3dev (2010-05-22 trunk 27953) [x86_64-darwin10.3.0]
> 
> Building from http://svn.ruby-lang.org/repos/ruby/trunk at r27953 causes gem install to fail on both Mac OS X 10.5 and 10.6.
> 
> Steps to reproduce follow:
> 
> Build from SVN at the above revision in the standard way:
> 
> autoconf
> ./configure
> make
> make install
> 
> Then run the following:
> 
> $ gem install -prawn -V --debug

I can't repro at all. First off, I assume you don't mean "-prawn" and instead mean "prawn". I updated my svn checkout to the revision you specified, did the above commands (adding --prefix=/tmp/ruby19 --program-suffix=19 to configure) and it installed fine. I also set PATH and GEM_PATH to point to the new dirs.

So something else very odd is going on.

For the sake of documentation, can you provide the following:

1) Have you remove/renamed stock /usr/bin/{ruby,gem,rdoc} ?

2) `env | egrep "^PATH|GEM|RUBY"`

3) `xcodebuild -version`

4) `sw_vers`

For me:

1) no, I normally use stock ruby on 10.6.3

2) 

> 508 % env | egrep "^PATH|GEM|RUBY"
> PATH=/Users/ryan/Bin:/sbin:/usr/sbin:/bin:/usr/bin:/usr/local/sbin:/usr/local/bin:/opt/local/bin:/opt/local/sbin:/Developer/usr/bin:/usr/X11R6/binEM_PATH=/Library/Ruby/Gems/1.8

3)

> Xcode 3.2.1
> Component versions: DevToolsCore-1614.0; DevToolsSupport-1591.0
> BuildVersion: 10M2003

4)

> ProductName:	Mac OS X
> ProductVersion:	10.6.3
> BuildVersion:	10D573