For a couple weeks, I haven't been able to install any gems on my
MacBook Pro.  I got so fed up with it that I eventually even wiped and
reinstalled the drive and OS ... and the problem hasn't gone away.

Here's what happens when I try to install a gem (with verbose debugger
output).   Here I've used gemcutter, but this happens with every gem.

[code]
mbp:~ evan$ sudo gem install --verbose --debug gemcutter
Password:
Exception `NameError' at
/usr/local/lib/ruby/site_ruby/1.8/rubygems/command_manager.rb:161 -
uninitialized constant Gem::Commands::InstallCommand
Exception `Gem::LoadError' at
/usr/local/lib/ruby/site_ruby/1.8/rubygems.rb:827 - Could not find
RubyGem test-unit (>= 0)

Exception `Gem::LoadError' at
/usr/local/lib/ruby/site_ruby/1.8/rubygems.rb:827 - Could not find
RubyGem sources (> 0.0.1)

GET 302 Found: http://gems.rubyforge.org/latest_specs.4.8.gz
GET 200 OK: http://production.s3.rubygems.org/latest_specs.4.8.gz
GET 302 Found:
http://gems.rubyforge.org/quick/Marshal.4.8/gemcutter-0.3.0.gemspec.rz
GET 200 OK:
http://production.s3.rubygems.org/quick/Marshal.4.8/gemcutter-0.3.0.gemspec.rz
GET 302 Found:
http://gems.rubyforge.org/quick/Marshal.4.8/json_pure-1.2.0.gemspec.rz
GET 200 OK:
http://production.s3.rubygems.org/quick/Marshal.4.8/json_pure-1.2.0.gemspec.rz
Installing gem json_pure-1.2.0
Downloading gem json_pure-1.2.0.gem
GET 302 Found: http://gems.rubyforge.org/gems/json_pure-1.2.0.gem
[/code]

Here's gem env:

[code]
mbp:~ evan$ gem env
RubyGems Environment:
  - RUBYGEMS VERSION: 1.3.5
  - RUBY VERSION: 1.8.7 (2009-12-24 patchlevel 248) [i686-darwin10.0.0]
  - INSTALLATION DIRECTORY: /usr/local/lib/ruby/gems/1.8
  - RUBY EXECUTABLE: /usr/local/bin/ruby
  - EXECUTABLE DIRECTORY: /usr/local/bin
  - RUBYGEMS PLATFORMS:
    - ruby
    - x86-darwin-10
  - GEM PATHS:
     - /usr/local/lib/ruby/gems/1.8
     - /Users/evan/.gem/ruby/1.8
  - GEM CONFIGURATION:
     - :update_sources => true
     - :verbose => true
     - :benchmark => false
     - :backtrace => false
     - :bulk_threshold => 1000
  - REMOTE SOURCES:
     - http://gems.rubyforge.org/
[/code]


Here's what I've installed on this computer:
1) Fresh wipe of HD
2) Install Snow Leopard
3) Install Apple Developer tools / xcode
4) Install textmate and Path Finder
5) Install Ruby and Rubygems exactly as per hivelogic:
   http://hivelogic.com/articles/compiling-ruby-rubygems-and-rails-on-snow-leopard/
6) Install mysql as per hivelogic:
   http://hivelogic.com/articles/compiling-mysql-on-snow-leopard/

That's it.    Attempted to gem install gemcutter and gem install mysql
and got the errors shown above.

The ruby process hangs and shows in top as "sleeping", using 0.3% of
CPU.   I've let it sit there for at least 30 minutes with no change.

Any suggestions?
-- 
Posted via http://www.ruby-forum.com/.