Rails 2.2.2问题:undefined method `activate_bin_path' for Gem:Module (NoMethodError)

7 浏览
0 Comments

Rails 2.2.2问题:undefined method `activate_bin_path' for Gem:Module (NoMethodError)

我正在处理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 `
': 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 `
'

请帮帮我。

0