Skip to content

Instantly share code, notes, and snippets.

@warewolf
Created April 28, 2013 14:10
Show Gist options
  • Select an option

  • Save warewolf/5476989 to your computer and use it in GitHub Desktop.

Select an option

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".
[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