[Rubygems-developers] [ rubygems-Bugs-25555 ] gem uninstall does not handle binaries in non-system locations

noreply at rubyforge.org noreply at rubyforge.org
Mon Apr 20 14:15:26 EDT 2009


Bugs item #25555, was opened at 2009-04-20 14:15
You can respond by visiting: 
http://rubyforge.org/tracker/?func=detail&atid=575&aid=25555&group_id=126

Category: `gem` commands (other)
Group: None
Status: Open
Resolution: None
Priority: 3
Submitted By: Brett Eisenberg (brett)
Assigned to: Nobody (None)
Summary: gem uninstall does not handle binaries in non-system locations

Initial Comment:
[ruby at rubygems]:~% gem uninstall aws-s3
Remove executables:
	s3sh

in addition to the gem? [Yn]  Y
ERROR:  While executing gem ... (Gem::FilePermissionError)
    You don't have write permissions into the /opt/local/bin directory.
[ruby at rubygems]:~% which s3sh
/Users/ruby/.gem/ruby/1.8/bin/s3sh

--

[ruby at rubygems]:~% gem uninstall aws-s3 --debug
Exception `NameError' at /opt/local/lib/ruby/site_ruby/1.8/rubygems/command_manager.rb:161 - uninitialized constant Gem::Commands::UninstallCommand
Remove executables:
	s3sh

in addition to the gem? [Yn]  Y
Exception `Gem::FilePermissionError' at /opt/local/lib/ruby/site_ruby/1.8/rubygems/uninstaller.rb:154 - You don't have write permissions into the /opt/local/bin directory.
ERROR:  While executing gem ... (Gem::FilePermissionError)
    You don't have write permissions into the /opt/local/bin directory.
	/opt/local/lib/ruby/site_ruby/1.8/rubygems/uninstaller.rb:154:in `remove_executables'
	/opt/local/lib/ruby/site_ruby/1.8/rubygems/uninstaller.rb:109:in `uninstall_gem'
	/opt/local/lib/ruby/site_ruby/1.8/rubygems/uninstaller.rb:109:in `each'
	/opt/local/lib/ruby/site_ruby/1.8/rubygems/uninstaller.rb:109:in `uninstall_gem'
	/opt/local/lib/ruby/site_ruby/1.8/rubygems/uninstaller.rb:95:in `uninstall'
	/opt/local/lib/ruby/site_ruby/1.8/rubygems/commands/uninstall_command.rb:73:in `execute'
	/opt/local/lib/ruby/site_ruby/1.8/rubygems/commands/uninstall_command.rb:71:in `each'
	/opt/local/lib/ruby/site_ruby/1.8/rubygems/commands/uninstall_command.rb:71:in `execute'
	/opt/local/lib/ruby/site_ruby/1.8/rubygems/command.rb:254:in `invoke'
	/opt/local/lib/ruby/site_ruby/1.8/rubygems/command_manager.rb:132:in `process_args'
	/opt/local/lib/ruby/site_ruby/1.8/rubygems/command_manager.rb:102:in `run'
	/opt/local/lib/ruby/site_ruby/1.8/rubygems/gem_runner.rb:58:in `run'
	/opt/local/bin/gem:21



----------------------------------------------------------------------

You can respond by visiting: 
http://rubyforge.org/tracker/?func=detail&atid=575&aid=25555&group_id=126


More information about the Rubygems-developers mailing list