问题
I am trying very hard to uninstall Ruby and Gem from my computer so that I can do a complete reinstall of all, since I've clogged up a few errors and crossed wires.
When I do sudo uninstall gem
I get the following progress/message:
Preparing Uninstall...
Uninstall Began...
Uninstall Failed...
Reason: ErrorMissingBundle
I'm NOT, I repeat NOT at this point looking to install rvm, since I just want to clean out my computer and get rid of the bugs before I install anything else.
回答1:
You didn't say how far you had gotten in the process, but all you have to do is remove the Ruby directory (grep for it) and the gems will go away with it. You'll probably have to update your paths as well.
But, you really should use RVM. If you install it correctly those errors you see will not affect you because you will be using the RVM installed Ruby and gems. Also, the system installed Ruby is sometimes used in apps and if you remove it you could break those apps.
More information in this previous question.
来源:https://stackoverflow.com/questions/8319495/how-to-reinstall-ruby-and-gem-on-mac-os-x