无法创建新的rails应用程序,当我运行rails new app
时,出现以下错误
/home/mr/.rvm/gems/ruby-2.2.0/bin/rails:23:in `load': cannot load such file -- /home/mr/.rvm/gems/ruby-2.2.0/gems/rails-4.2.3/bin/rails (LoadError)
from /home/mr/.rvm/gems/ruby-2.2.0/bin/rails:23:in `<main>'
from /home/mr/.rvm/gems/ruby-2.2.0/bin/ruby_executable_hooks:15:in `eval'
from /home/mr/.rvm/gems/ruby-2.2.0/bin/ruby_executable_hooks:15:in `<main>'
我的宝石环境
$ gem env
RubyGems Environment:
- RUBYGEMS VERSION: 2.4.8
- RUBY VERSION: 2.2.0 (2014-12-25 patchlevel 0) [x86_64-linux]
- INSTALLATION DIRECTORY: /home/mr/.rvm/gems/ruby-2.2.0
- RUBY EXECUTABLE: /home/mr/.rvm/rubies/ruby-2.2.0/bin/ruby
- EXECUTABLE DIRECTORY: /home/mr/.rvm/gems/ruby-2.2.0/bin
- SPEC CACHE DIRECTORY: /home/mr/.gem/specs
- SYSTEM CONFIGURATION DIRECTORY: /home/mr/.rvm/rubies/ruby-2.2.0/etc
- RUBYGEMS PLATFORMS:
- ruby
- x86_64-linux
- GEM PATHS:
- /home/mr/.rvm/gems/ruby-2.2.0
- /home/mr/.rvm/gems/ruby-2.2.0@global
- GEM CONFIGURATION:
- :update_sources => true
- :verbose => true
- :backtrace => false
- :bulk_threshold => 1000
- REMOTE SOURCES:
- https://rubygems.org/
- SHELL PATH:
- /home/mr/.rvm/gems/ruby-2.2.0/bin
- /home/mr/.rvm/gems/ruby-2.2.0@global/bin
- /home/mr/.rvm/rubies/ruby-2.2.0/bin
- /home/mr/.rvm/bin
- /usr/local/heroku/bin
- /usr/local/sbin
- /usr/local/bin
- /usr/sbin
- /usr/bin
- /sbin
- /bin
- /usr/games
- /usr/local/games
在我的宝石列表中,我有rails 4.2.3 gem
我试过rvm use 2.2.0
并且/bin/bash --login
也重新安装了rails gem但没有任何作用,如何解决这个问题?