在rails -v / rails新应用程序上获取错误

时间:2015-10-26 20:54:32

标签: ruby-on-rails ruby rvm

在rails new myapp上获取错误

/home/high-tech/.rbenv/versions/2.2.0/lib/ruby/2.2.0/rubygems/dependency.rb:315:in `to_specs': Could not find 'railties' (>= 0) among 19 total gem(s) (Gem::LoadError)
Checked in 'GEM_PATH=/home/high-tech/.rvm/gems/ruby-2.2.3:/home/high-tech/.rvm/gems/ruby-2.2.3@global', execute `gem env` for more information
    from /home/high-tech/.rbenv/versions/2.2.0/lib/ruby/2.2.0/rubygems/dependency.rb:324:in `to_spec'
    from /home/high-tech/.rbenv/versions/2.2.0/lib/ruby/2.2.0/rubygems/core_ext/kernel_gem.rb:64:in `gem'
    from /home/high-tech/.rbenv/versions/2.2.0/bin/rails:22:in `<main>'

1 个答案:

答案 0 :(得分:2)

滑轨&#39;可能没有正确安装依赖项。

尝试以下方法:

bundle show railties

如果失败:

gem install railties

安装gem。 希望它有所帮助。