some info about my system: ubuntu 8.10, ruby 1.8.3, rubygems 1.3.1 (installed from source) Here are the gems I have and can't uninstall: addressable (2.0.1) cgi_multipart_eof_fix (2.5.0) cheat (1.2.1) daemons (1.0.10) data_objects (0.9.10.1) do_mysql (0.9.10.1) extlib (0.9.9) fastthread (1.0.1) gem_plugin (0.2.3) mongrel (1.1.5) when I try this: sudo gem uninstall cheat I get this: ERROR: While executing gem ... (Gem::InstallError) Unknown gem cheat >= 0 thanks!
on 2009-01-05 06:43
on 2009-01-05 12:22
Oren G. wrote: > data_objects (0.9.10.1) > I get this: > ERROR: While executing gem ... (Gem::InstallError) > Unknown gem cheat >= 0 What is the output of "gem env"? I'm guessing that you have multiple gem paths. Dan
on 2009-01-05 19:19
RubyGems Environment: - RUBYGEMS VERSION: 1.3.1 - RUBY VERSION: 1.8.7 (2008-08-11 patchlevel 72) [i486-linux] - INSTALLATION DIRECTORY: /usr/lib/ruby/gems/1.8 - RUBY EXECUTABLE: /usr/bin/ruby1.8 - EXECUTABLE DIRECTORY: /usr/bin - RUBYGEMS PLATFORMS: - ruby - x86-linux - GEM PATHS: - /usr/lib/ruby/gems/1.8 - /home/oren/.gem/ruby/1.8 - GEM CONFIGURATION: - :update_sources => true - :verbose => true - :benchmark => false - :backtrace => false - :bulk_threshold => 1000 - REMOTE SOURCES: - http://gems.rubyforge.org/
on 2009-01-05 19:35
On Jan 5, 3:19 pm, Oren G. <email@example.com> wrote: > - /usr/lib/ruby/gems/1.8 > - /home/oren/.gem/ruby/1.8 > - GEM CONFIGURATION: > - :update_sources => true > - :verbose => true > - :benchmark => false > - :backtrace => false > - :bulk_threshold => 1000 > - REMOTE SOURCES: > -http://gems.rubyforge.org/ INSTALLATION DIRECTORY indicates where the gems will be installed and uninstalled from. Maybe 'cheat' gem installed in your home gem repository instead (looking at GEM PATHS). Please try: gem uninstall cheat -i /home/oren/.gem/ruby/1.8 HTH,
on 2009-01-06 07:51
thanks, it worked. so is it normal or should i fix it somehow so all my gems will be in a single location?
on 2009-01-10 10:01
does anyone knows the cause for this issue and how can I prevent it from happening in the future?
on 2009-01-10 14:53
2009/1/6 Oren G. <firstname.lastname@example.org> > thanks, it worked. > so is it normal or should i fix it somehow so all my gems will be in a > single location? I've run into this issue myself. I'm not sure how you're "supposed" to solve it, but I just make sure I install using sudo. Put this in your .bashrc: alias gem-inst="sudo gem install" Then install gems using, e.g. gem-inst rails Then all your gems will go in /usr/lib rather than ~/.gems.
on 2009-01-11 00:53
got it. thanks!