[Rubygems-developers] gem install and gem uninstall missing --install-dir

Todd Fisher todd.fisher at gmail.com
Tue Jun 12 10:38:45 EDT 2007


Hi,

gem install has the --install-dir flag, but uninstall does not.  This means
if I wanted to create a gem repository in a non-standard directory such as
/opt/gems  I can not uninstall gems from that alternate folder.
Trying to set the GEM_HOME to an empty gem folder causes the gem command to
fail with this stack trace.


 GEM_HOME=/opt/rhg/gems/ gem uninstall package

/usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in
`gem_original_require': no such file to load -- sources (LoadError)

        from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in
`require'

        from /usr/lib/ruby/site_ruby/1.8/rubygems/source_info_cache.rb:6

        from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in
`gem_original_require'

        from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in
`require'

        from /usr/lib/ruby/site_ruby/1.8/rubygems/remote_installer.rb:12

        from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in
`gem_original_require'

        from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in
`require'

        from /usr/lib/ruby/site_ruby/1.8/rubygems.rb:112:in `manage_gems'

        from /usr/bin/gem:10


Thanks in advance for any suggestions!

Todd
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/rubygems-developers/attachments/20070612/a73a8954/attachment.html 


More information about the Rubygems-developers mailing list