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
_______________________________________________
Rubygems-developers mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/rubygems-developers

Reply via email to