看到该提示后我已经成功安装了该 gem 了(下面第一二行可见),但还是有这个报错,我是在 rvm 创建的 sandbox 中操作的,但操作貌似都是正常的呀,在 sandbox 中用的 gem install ...来安装的 gem
/home/omrails [ruby-1.9.3-p194@omrails] $gem install railties
Successfully installed railties-3.2.10
1 gem installed
/home/omrails [ruby-1.9.3-p194@omrails] $sudo rails new omrails
/home/vagrant/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems/dependency.rb:247:in `to_specs': Could not find railties (>= 0) amongst [] (Gem::LoadError)
from /home/vagrant/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems/dependency.rb:256:in `to_spec'
from /home/vagrant/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems.rb:1231:in `gem'
from /home/vagrant/.rvm/gems/ruby-1.9.3-p194@omrails/bin/rails:18:in `<main>'
from /home/vagrant/.rvm/gems/ruby-1.9.3-p194@omrails/bin/ruby_noexec_wrapper:14:in `eval'
from /home/vagrant/.rvm/gems/ruby-1.9.3-p194@omrails/bin/ruby_noexec_wrapper:14:in `<main>'
/home/omrails [ruby-1.9.3-p194@omrails] $