Forum: Ruby I can't uninstall a few gems

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Ea28a1533185f15e9364a8db6f9c0bae?d=identicon&s=25 Oren Golan (oreng)
on 2009-01-05 05:43
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!
Aee77dba395ece0a04c688b05b07cd63?d=identicon&s=25 Daniel Berger (djberg96)
on 2009-01-05 11:22
(Received via mailing list)
Oren Golan 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
Ea28a1533185f15e9364a8db6f9c0bae?d=identicon&s=25 Oren Golan (oreng)
on 2009-01-05 18: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/
E7cff3cfd41c495e1012227d7dc24202?d=identicon&s=25 Luis Lavena (luislavena)
on 2009-01-05 18:35
(Received via mailing list)
On Jan 5, 3:19 pm, Oren Golan <orengo...@gmail.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,
Ea28a1533185f15e9364a8db6f9c0bae?d=identicon&s=25 Oren Golan (oreng)
on 2009-01-06 06:51
thanks, it worked.
so is it normal or should i fix it somehow so all my gems will be in a
single location?
Ea28a1533185f15e9364a8db6f9c0bae?d=identicon&s=25 Oren Golan (oreng)
on 2009-01-10 09:01
does anyone knows the cause for this issue and how can I prevent it from
happening in the future?
53581739a445ad78250a676dabddf55f?d=identicon&s=25 James Coglan (Guest)
on 2009-01-10 13:53
(Received via mailing list)
2009/1/6 Oren Golan <orengolan@gmail.com>

> 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.
Ea28a1533185f15e9364a8db6f9c0bae?d=identicon&s=25 Oren Golan (oreng)
on 2009-01-10 23:53
got it. thanks!
This topic is locked and can not be replied to.