私はMacOSX10.7.4を使用しています。そこで、rootである間にRubyGemを使用してレールをインストールしました。
私がルートであるとき、これをrails -v
もたらします:
bash-3.2# rails -v
Rails 3.2.8
しかし、私がルートでない場合rails -v
、、はこれを生成します:
Sreejiths-MacBook-Pro:~ sreejith$ rails -v
/opt/local/lib/ruby/site_ruby/1.8/rubygems/dependency.rb:247:in `to_specs': Could not find railties (>= 0) amongst [bundler-1.2.1, rake-0.9.2.2, rubygems-bundler-1.1.0, rvm-1.11.3.5] (Gem::LoadError)
from /opt/local/lib/ruby/site_ruby/1.8/rubygems/dependency.rb:256:in `to_spec'
from /opt/local/lib/ruby/site_ruby/1.8/rubygems.rb:1231:in `gem'
from /opt/local/bin/rails:22
なんでそうなの?