Ruby:rake:22:对于Gem:Module(NoMethodError),未定义的方法`activate_bin_path' [英] Ruby: rake:22: undefined method `activate_bin_path' for Gem:Module (NoMethodError)
本文介绍了Ruby:rake:22:对于Gem:Module(NoMethodError),未定义的方法`activate_bin_path'的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
当试图运行rake db:migrate时,我得到了这个错误:
RubyGems安装了以下可执行文件:
/home/wellington/.rbenv/versions/1.8.7-p374/bin/gem
RubyGems系统软件更新
/home/wellington/.rbenv/versions/1.8.7-p374/bin/rake:22:未定义方法`activate_bin_path'为Gem:Module(NoMethodError)
它发生在部署Rails应用程序中。
任何想法解决这个问题?
解决方案
我解决了这个更新的gem和bundler
gem update --system
gem update bundler
I had this problems in Ruby 1.8.7-p374.
When try to run "rake db:migrate" i got this error:
RubyGems installed the following executables:
/home/wellington/.rbenv/versions/1.8.7-p374/bin/gem
RubyGems system software updated
/home/wellington/.rbenv/versions/1.8.7-p374/bin/rake:22: undefined method `activate_bin_path' for Gem:Module (NoMethodError)
Its occurs on deploy Rails apps.
Any ideas to solve this?
解决方案
I resolved this updating gem and bundler
gem update --system
gem update bundler
这篇关于Ruby:rake:22:对于Gem:Module(NoMethodError),未定义的方法`activate_bin_path'的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文