Assuming that gem clean
(or sudo gem clean
) doesn't work, I would try the following to totally remove all gems from your system:
You can see where gems have been installed by running the command:
gem env paths
To remove all the gems on your system, simply remove the folders returned by this command.
Additionally, on OSX Leopard, default gems are installed in this folder:
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8
If this folder exists on your system, as before you can remove this folder to ensure all gems are deleted.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…