Ruby: rake:22: undefined method `activate_bin_path' for Gem:Module (NoMethodError)

心已入冬 提交于 2019-12-12 04:26:26

问题


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?


回答1:


I resolved this updating gem and bundler

gem update --system
gem update bundler


来源:https://stackoverflow.com/questions/39457889/ruby-rake22-undefined-method-activate-bin-path-for-gemmodule-nomethoderro

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!