Created
April 28, 2013 14:10
-
-
Save warewolf/5476989 to your computer and use it in GitHub Desktop.
Cleaning up a mess of system-wide ruby gems I installed. Apparently gem doesn't understand the difference between "permission denied" and "file/directory does not exist".
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [root@xasf /usr/share/gems]# gem uninstall -i /usr/share/gems rake | |
| Remove executables: | |
| rake | |
| in addition to the gem? [Yn] y | |
| ERROR: While executing gem ... (Gem::FilePermissionError) | |
| You don't have write permissions into the /usr/share/gems/bin directory. | |
| [root@xasf /usr/share/gems]# ls | |
| cache doc gems specifications | |
| [root@xasf /usr/share/gems]# mkdir bin | |
| [root@xasf /usr/share/gems]# gem uninstall -i /usr/share/gems rake | |
| Remove executables: | |
| rake | |
| in addition to the gem? [Yn] y | |
| Removing rake | |
| Successfully uninstalled rake-0.9.6 | |
| [root@xasf gems]# |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment