[Solved] Ruby: rake:22: undefined method `activate_bin_path’ for Gem:Module (NoMethodError)

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:

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?

Solution #1:

I resolved this updating gem and bundler

gem update --system
gem update bundler
Respondent: Edu Lomeli

The answers/resolutions are collected from stackoverflow, are licensed under cc by-sa 2.5 , cc by-sa 3.0 and cc by-sa 4.0 .

Leave a Reply

Your email address will not be published.