Rails 2.2.2问题:Gem的未定义方法`activate_bin_path':Module(NoMethodError)

use*_*916 23 ruby-on-rails

我正在研究Rails 2.2.2应用程序.为此,我安装了Ruby版本1.9.3p551的rvm.此应用程序没有Gemfile.所以我在environment.rb文件中提到过我用rails和sqlite3创建了一个Gemfile.在运行rake db:create时,我遇到了以下问题.

whoami@myvm:~/Desktop/practice/store$ rake db:create
/home/whoami/.rvm/gems/ruby-1.9.3-p551/bin/rake:22:in `<main>': undefined method `activate_bin_path' for Gem:Module (NoMethodError)
    from /home/whoami/.rvm/gems/ruby-1.9.3-p551/bin/ruby_executable_hooks:15:in `eval'
    from /home/whoami/.rvm/gems/ruby-1.9.3-p551/bin/ruby_executable_hooks:15:in `<main>'
Run Code Online (Sandbox Code Playgroud)

请帮我.

小智 53

对我来说,(我正在使用RVM)它只运行:

gem update --system
gem update bundler
Run Code Online (Sandbox Code Playgroud)