Rails 2.2.2 问题:未定义 Gem:Module 的方法“activate_bin_path"(NoMethodError) [英] Rails 2.2.2 issue: undefined method `activate_bin_path' for Gem:Module (NoMethodError)
本文介绍了Rails 2.2.2 问题:未定义 Gem:Module 的方法“activate_bin_path"(NoMethodError)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在开发 Rails 2.2.2 应用程序.为此,我使用 Ruby 版本 1.9.3p551 安装了 rvm.此应用程序没有 Gemfile.所以正如 environment.rb 文件中提到的,我用 rails 和 sqlite3 创建了一个 Gemfile.在运行 rake db:create 时,我面临以下问题.
I am working on Rails 2.2.2 application. For this I installed rvm with Ruby version 1.9.3p551. There is no Gemfile for this application. So as mentioned in the environment.rb file I created a Gemfile with rails and sqlite3. While running rake db:create, I am facing the following issue.
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>'
请帮帮我.
推荐答案
对我来说,(我正在使用 RVM)它只是运行:
For me, (I am working with RVM) it worked just running:
gem update --system
gem update bundler
这篇关于Rails 2.2.2 问题:未定义 Gem:Module 的方法“activate_bin_path"(NoMethodError)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文