rails -v / rails 新应用出现错误
getting error on rails -v / rails new app
在 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>'
Rails' 依赖项可能未正确安装。
尝试以下操作:
bundle show railties
如果失败:
gem install railties
安装gem。
希望对你有帮助。
在 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>'
Rails' 依赖项可能未正确安装。
尝试以下操作:
bundle show railties
如果失败:
gem install railties
安装gem。 希望对你有帮助。