Could not find rails (>= 0) amongst [bundler-1.0.21]

Hello, I’m new to Ruby and unix/linux development (although been
building .net apps for years).

I’ve almost completed my trek to install Rails … looks like I have one
final hurdle. After installing rails I try the ‘rails -v’ command and
it fails. Any help here would be deeply appreciated.

Here’s the output from my bash session:

bash-3.2$ ruby -v
ruby 1.9.2p290 (2011-07-09 revision 32553) [x86_64-darwin10.8.0]
bash-3.2$ which gem
/Users/doug/.rvm/rubies/ruby-1.9.2-p290/bin/gem
bash-3.2$ sudo gem update --system
Password:
Updating rubygems-update
Fetching: rubygems-update-1.8.11.gem (100%)
Successfully installed rubygems-update-1.8.11
Installing RubyGems 1.8.11
RubyGems 1.8.11 installed

== 1.8.11 / 2011-10-03

  • Bug fix:
    • Deprecate was moved to Gem::Deprecate to stop polluting the
      top-level
      namespace.

RubyGems installed the following executables:
/Users/doug/.rvm/rubies/ruby-1.9.2-p290/bin/gem

RubyGems system software updated
bash-3.2$ sudo gem install rails --version 3.0.1
Fetching: activesupport-3.0.1.gem (100%)
Fetching: builder-2.1.2.gem (100%)
WARNING: builder-2.1.2 has an invalid nil value for @cert_chain
Fetching: i18n-0.4.2.gem (100%)
Fetching: activemodel-3.0.1.gem (100%)
Fetching: rack-1.2.4.gem (100%)
Fetching: rack-test-0.5.7.gem (100%)
Fetching: rack-mount-0.6.14.gem (100%)
Fetching: tzinfo-0.3.30.gem (100%)
Fetching: abstract-1.0.0.gem (100%)
WARNING: abstract-1.0.0 has an invalid nil value for @cert_chain
Fetching: erubis-2.6.6.gem (100%)
Fetching: actionpack-3.0.1.gem (100%)
Fetching: arel-1.0.1.gem (100%)
Fetching: activerecord-3.0.1.gem (100%)
Fetching: activeresource-3.0.1.gem (100%)
Fetching: mime-types-1.17.2.gem (100%)
Fetching: polyglot-0.3.2.gem (100%)
Fetching: treetop-1.4.10.gem (100%)
Fetching: mail-2.2.19.gem (100%)
Fetching: actionmailer-3.0.1.gem (100%)
Fetching: thor-0.14.6.gem (100%)
Fetching: railties-3.0.1.gem (100%)
Fetching: bundler-1.0.21.gem (100%)
Fetching: rails-3.0.1.gem (100%)
Successfully installed activesupport-3.0.1
Successfully installed builder-2.1.2
Successfully installed i18n-0.4.2
Successfully installed activemodel-3.0.1
Successfully installed rack-1.2.4
Successfully installed rack-test-0.5.7
Successfully installed rack-mount-0.6.14
Successfully installed tzinfo-0.3.30
Successfully installed abstract-1.0.0
Successfully installed erubis-2.6.6
Successfully installed actionpack-3.0.1
Successfully installed arel-1.0.1
Successfully installed activerecord-3.0.1
Successfully installed activeresource-3.0.1
Successfully installed mime-types-1.17.2
Successfully installed polyglot-0.3.2
Successfully installed treetop-1.4.10
Successfully installed mail-2.2.19
Successfully installed actionmailer-3.0.1
Successfully installed thor-0.14.6
Successfully installed railties-3.0.1
Successfully installed bundler-1.0.21
Successfully installed rails-3.0.1
23 gems installed
Installing ri documentation for activesupport-3.0.1…
Installing ri documentation for builder-2.1.2…
Installing ri documentation for i18n-0.4.2…
Installing ri documentation for activemodel-3.0.1…
Installing ri documentation for rack-1.2.4…
Installing ri documentation for rack-test-0.5.7…
Installing ri documentation for rack-mount-0.6.14…
Installing ri documentation for tzinfo-0.3.30…
Installing ri documentation for abstract-1.0.0…
Installing ri documentation for erubis-2.6.6…
Installing ri documentation for actionpack-3.0.1…
Installing ri documentation for arel-1.0.1…
Installing ri documentation for activerecord-3.0.1…
Installing ri documentation for activeresource-3.0.1…
Installing ri documentation for mime-types-1.17.2…
Installing ri documentation for polyglot-0.3.2…
Installing ri documentation for treetop-1.4.10…
Installing ri documentation for mail-2.2.19…
Installing ri documentation for actionmailer-3.0.1…
Installing ri documentation for thor-0.14.6…
Installing ri documentation for railties-3.0.1…
Installing ri documentation for bundler-1.0.21…
Installing ri documentation for rails-3.0.1…
Installing RDoc documentation for activesupport-3.0.1…
Installing RDoc documentation for builder-2.1.2…
Installing RDoc documentation for i18n-0.4.2…
Installing RDoc documentation for activemodel-3.0.1…
Installing RDoc documentation for rack-1.2.4…
Installing RDoc documentation for rack-test-0.5.7…
Installing RDoc documentation for rack-mount-0.6.14…
Installing RDoc documentation for tzinfo-0.3.30…
Installing RDoc documentation for abstract-1.0.0…
Installing RDoc documentation for erubis-2.6.6…
Installing RDoc documentation for actionpack-3.0.1…
Installing RDoc documentation for arel-1.0.1…
Installing RDoc documentation for activerecord-3.0.1…
Installing RDoc documentation for activeresource-3.0.1…
Installing RDoc documentation for mime-types-1.17.2…
Installing RDoc documentation for polyglot-0.3.2…
Installing RDoc documentation for treetop-1.4.10…
Installing RDoc documentation for mail-2.2.19…
Installing RDoc documentation for actionmailer-3.0.1…
Installing RDoc documentation for thor-0.14.6…
Installing RDoc documentation for railties-3.0.1…
Installing RDoc documentation for bundler-1.0.21…
Installing RDoc documentation for rails-3.0.1…
bash-3.2$ rails -v
/Users/doug/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/site_ruby/1.9.1/rubygems/dependency.rb:247:in
to_specs': Could not find rails (>= 0) amongst [bundler-1.0.21] (Gem::LoadError) from /Users/doug/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/site_ruby/1.9.1/rubygems/dependency.rb:256:into_spec’
from
/Users/doug/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/site_ruby/1.9.1/rubygems.rb:1210:in
gem' from /Users/doug/.rvm/rubies/ruby-1.9.2-p290/bin/rails:18:in

On Oct 30, 9:13pm, Douglas B. [email protected] wrote:

ruby 1.9.2p290 (2011-07-09 revision 32553) [x86_64-darwin10.8.0]
== 1.8.11 / 2011-10-03

RubyGems system software updated
bash-3.2$ sudo gem install rails --version 3.0.1

Installing gems as root when you’re using rvm can do funny things -
you shouldn’t need to

Fred

Fred - did as you recommended. Fooking awesome. Thank you!