rails/rails — Issue #4951: gem install rails does not install rails
Author: jstehle
Created: 2012-02-08 20:57:44+00:00
State: open

I upgraded my MacBook to SnowLeopard and installed XCode from the install disc. Did a 'software update' to get latest patches.
Downloaded Ruby 1.9.3 and compiled it ( ./configure --program-suffix=1.9.3 --enable-shared --enable-pthread CFLAGS=-D_XOPEN_SOURCE=1 ) So far so good.

ran gem install rails, which installed all the gems BUT rails-3.2.1. The dir is there in /Library/Ruby/Gems/1.9/gems, but is empty.

RubyGems Environment:
- RUBYGEMS VERSION: 1.8.15
- RUBY VERSION: 1.9.3 (2011-10-30 patchlevel 0) [x86_64-darwin10.8.0]
- INSTALLATION DIRECTORY: /Library/Ruby/Gems/1.9
- RUBY EXECUTABLE: /usr/local/bin/ruby1.9.3
- EXECUTABLE DIRECTORY: /Library/Ruby/Gems/1.9/bin
- RUBYGEMS PLATFORMS:
- ruby
- x86_64-darwin-10
- GEM PATHS:
- /Library/Ruby/Gems/1.9
- /Users/johnstehle/.gem/ruby/1.9.1
- /usr/local/lib/ruby/gems/1.9.1
- GEM CONFIGURATION:
- :update_sources => true
- :verbose => true
- :benchmark => false
- :backtrace => false
- :bulk_threshold => 1000
- REMOTE SOURCES:
- http://rubygems.org/

gem install -V rails
GET http://rubygems.org/latest_specs.4.8.gz
302 Found
GET http://production.s3.rubygems.org/latest_specs.4.8.gz
200 OK
GET http://rubygems.org/specs.4.8.gz
302 Found
GET http://production.s3.rubygems.org/specs.4.8.gz
200 OK
Installing gem rails-3.2.1
Downloading gem rails-3.2.1.gem
GET http://rubygems.org/gems/rails-3.2.1.gem
connection reset after 3 requests, retrying
GET http://rubygems.org/gems/rails-3.2.1.gem
302 Found
GET http://production.cf.rubygems.org/gems/rails-3.2.1.gem
Fetching: rails-3.2.1.gem (100%)
200 OK
Successfully installed rails-3.2.1
1 gem installed
Installing ri documentation for rails-3.2.1...
rdoc --ri --op /Library/Ruby/Gems/1.9/doc/rails-3.2.1/ri lib --title rails-3.2.1 Documentation --quiet
Installing RDoc documentation for rails-3.2.1...
rdoc --op /Library/Ruby/Gems/1.9/doc/rails-3.2.1/rdoc lib --title rails-3.2.1 Documentation --quiet

A successful install

johnstehle$ gem install -V rails-carrot
GET http://rubygems.org/latest_specs.4.8.gz
302 Found
GET http://production.s3.rubygems.org/latest_specs.4.8.gz
304 Not Modified
Installing gem rails-carrot-1.0.1
Downloading gem rails-carrot-1.0.1.gem
GET http://rubygems.org/gems/rails-carrot-1.0.1.gem
302 Found
GET http://production.cf.rubygems.org/gems/rails-carrot-1.0.1.gem
Fetching: rails-carrot-1.0.1.gem (100%)
200 OK
/Library/Ruby/Gems/1.9/gems/rails-carrot-1.0.1/Manifest
/Library/Ruby/Gems/1.9/gems/rails-carrot-1.0.1/README
/Library/Ruby/Gems/1.9/gems/rails-carrot-1.0.1/Rakefile
/Library/Ruby/Gems/1.9/gems/rails-carrot-1.0.1/carrot.gemspec
/Library/Ruby/Gems/1.9/gems/rails-carrot-1.0.1/lib/carrot.rb
/Library/Ruby/Gems/1.9/gems/rails-carrot-1.0.1/lib/carrot/extend_server.rb
/Library/Ruby/Gems/1.9/gems/rails-carrot-1.0.1/lib/carrot/rails.rb
/Library/Ruby/Gems/1.9/gems/rails-carrot-1.0.1/lib/carrot/server.rb
/Library/Ruby/Gems/1.9/gems/rails-carrot-1.0.1/lib/carrot/util/timeout.rb
/Library/Ruby/Gems/1.9/gems/rails-carrot-1.0.1/rails-carrot.gemspec
Successfully installed rails-carrot-1.0.1
1 gem installed
Installing ri documentation for rails-carrot-1.0.1...
rdoc --ri --op /Library/Ruby/Gems/1.9/doc/rails-carrot-1.0.1/ri --line-numbers --title Rails-carrot --main README lib README lib/carrot.rb lib/carrot/extend_server.rb lib/carrot/rails.rb lib/carrot/server.rb lib/carrot/util/timeout.rb --title rails-carrot-1.0.1 Documentation --quiet
Installing RDoc documentation for rails-carrot-1.0.1...
rdoc --op /Library/Ruby/Gems/1.9/doc/rails-carrot-1.0.1/rdoc --line-numbers --title Rails-carrot --main README lib README lib/carrot.rb lib/carrot/extend_server.rb lib/carrot/rails.rb lib/carrot/server.rb lib/carrot/util/timeout.rb --title rails-carrot-1.0.1 Documentation --quiet

Any help would be greatly welcome.

Thanks