Agile Development. more fun less stress.

RubyGems: undefined method ‘manage_gems’ for Gem:Module (NoMethodError) – easy fix

Posted: March 25th, 2010 | Author: vid | Filed under: Development | 9 Comments »

After reading through many comments on my post RubyGems: undefined method ‘manage_gems’ for Gem:Module (NoMethodError) I now recommend following fix:

# to be sure to be able to undo this in case it doesnt work
mv /usr/bin/gem /your/path/of/choice/gem-backup
#
ln -s /usr/bin/gem1.8 /usr/bin/gem

Many thanx to Marcel and Adam DiCarlo.


9 Comments on “RubyGems: undefined method ‘manage_gems’ for Gem:Module (NoMethodError) – easy fix”

  1. 1 baptiste said at 12:09 on March 27th, 2010:

    thanks – seems to work

  2. 2 percy said at 01:01 on April 11th, 2010:

    thanks, works pretty well on the n900

  3. 3 Teambox auf Turnkey Linux Ubuntu 8.04.3 installieren | three.letter.acronym said at 08:26 on May 4th, 2010:

    [...] mv /usr/bin/gem /usr/bin/gem.old root@rails:/var/www# ln -s /usr/bin/gem1.8 /usr/bin/gem #(Danke an Martin Videc!) root@rails:/var/www# gem update –system root@rails:/var/www# gem install bundler -v '~> [...]

  4. 4 Setup a VPS for Rails – Part 1: Ruby, Rubygems, Rails, Passenger, Nginx | railsify => true said at 15:10 on May 4th, 2010:

    [...] Uhhh, to be honest, I did not really look into the reasoning of deprecating ‘manage_gems’ or figure out my own solution. I just followed  Martin Videc: [...]

  5. 5 jimg said at 03:35 on June 8th, 2010:

    Yes this worked for me! Thanks!!
    Just followed the instruction.

  6. 6 jerry lowery said at 17:59 on September 15th, 2010:

    I was trying to install rubygems with the command >ruby setup.rb, when I got the above message.

    I have neither of the above files in my /usr/bin directory. thanks

  7. 7 James said at 04:29 on September 20th, 2010:

    Thank you so much! This worked in under a minute!

  8. 8 chance said at 19:13 on February 2nd, 2011:

    fixed my problem! thanks so much!

  9. 9 junior said at 02:03 on March 14th, 2011:

    it works


Leave a Reply