undefined method `manage_gems’ for Gem:Module (NoMethodError)
OK, if you are looking for a solution to the above error hopefully this post might help you. This happens normally if you upgrade your gems.
(Please note – I’m talking about ubuntu here, If you are on windows then try Ubuntu
)
Then ruby gems will create a new file called ‘gem1.8′ and it will conflict with your older ‘gem’ file. You can find both these files in /usr/bin
So when ever you say gem list (or something with gem) it gives the error ‘/usr/bin/gem:11: undefined method `manage_gems’ for Gem:Module (NoMethodError)’
As a workaround , I have done following and it worked for me. My solution was to create a symbolic between ‘gem’ file and ‘gem1.8′ file.
Here’s how I did it,
first copy your ‘gem’ file (as a backup)
cp /usr/bin/gem /<my other path>/
Now delete the ‘gem’ file
sudo rm -f /usr/bin/gem
OK, now create the symbolic link
ln -s /usr/bin/gem1.8 /usr/bin/gem
Thats it, now time something like
gem list and it should work.
Hope this quick note will help
thanks, it really helped
Here is what worked for me:
http://ridingwithrails.wordpress.com/2010/11/09/gem-error-when-attempting-to-freeze-rails/
Thank you so much……It really helped me. I have literally wasted few hours in trying a solution for the error.
Just wanted to thank you for the useful instructions. Sure saved me hrs of head banging stress
Appreciate it!
Thanks man, it worked for me.