[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

I can't uninstall a few gems

Oren Golan

1/5/2009 4:42:00 AM

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!
--
Posted via http://www.ruby-....

7 Answers

Daniel Berger

1/5/2009 10:21:00 AM

0

Oren Golan wrote:
> 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

What is the output of "gem env"? I'm guessing that you have multiple gem
paths.

Dan


Oren Golan

1/5/2009 5:20:00 PM

0

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.ruby...
--
Posted via http://www.ruby-....

Luis Lavena

1/5/2009 5:31:00 PM

0

On Jan 5, 3:19 pm, Oren Golan <orengo...@gmail.com> wrote:
> 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.ruby...

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,
--
Luis Lavena

Oren Golan

1/6/2009 5:52:00 AM

0

thanks, it worked.
so is it normal or should i fix it somehow so all my gems will be in a
single location?
--
Posted via http://www.ruby-....

Oren Golan

1/10/2009 8:01:00 AM

0

does anyone knows the cause for this issue and how can I prevent it from
happening in the future?
--
Posted via http://www.ruby-....

James Coglan

1/10/2009 12:53:00 PM

0

[Note: parts of this message were removed to make it a legal post.]

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.

Oren Golan

1/10/2009 10:53:00 PM

0

got it. thanks!
--
Posted via http://www.ruby-....