1
下運行使用Ruby 1.9.2 Rails的時候當我嘗試RVM下使用Ruby 1.9.2何時運行Rails應用程序,我得到以下錯誤:錯誤RVM
/Users/purinkle/.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 [rake-0.9.2] (Gem::LoadError)
from /Users/purinkle/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/site_ruby/1.9.1/rubygems/dependency.rb:256:in `to_spec'
from /Users/purinkle/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/site_ruby/1.9.1/rubygems.rb:1182:in `gem'
from /Users/purinkle/.rvm/rubies/ruby-1.9.2-p290/bin/rails:18:in `<main>'
如果我嘗試運行同樣的命令,而使用Ruby 1.8.7,一切工作正常。
爲什麼會發生這種情況?
您是否安裝了Rails?你運行過'bundle install'嗎? – Geo
Ruby版本不共享寶石,如果您新安裝了ruby版本,則需要專門爲該ruby版本安裝所有gem,包括rails,bundler。 – Saifis