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
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.
thanks – seems to work
thanks, works pretty well on the n900
[...] 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 '~> [...]
[...] 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: [...]
Yes this worked for me! Thanks!!
Just followed the instruction.
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
Thank you so much! This worked in under a minute!
fixed my problem! thanks so much!
it works