Ruby: rake:22: undefined method `activate_bin_path

2019-09-04 05:02发布

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条回答
Ridiculous、
2楼-- · 2019-09-04 05:21

I resolved this updating gem and bundler

gem update --system
gem update bundler
查看更多
登录 后发表回答