[lnkForumImage]
TotalShareware - Download Free Software

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


 

Forums >

comp.lang.ruby

Unable to install old gems

Mitko Kostov

9/28/2008 12:54:00 PM

Hi, guys.

Today I preinstalled Mac OS X and want to get rid of the old rails gems,
but it gives me an error :

[quote]bash-3.2# gem uninstall activesupport
ERROR: While executing gem ... (Gem::InstallError)
Unknown gem activesupport >= 0[/quote]
But the gem is installed :

[quote]bash-3.2# gem list --local
*** LOCAL GEMS ***

actionmailer (1.3.6, 1.3.3)
actionpack (1.13.6, 1.13.3)
actionwebservice (1.2.6, 1.2.3)
activerecord (1.15.6, 1.15.3)
activesupport (1.4.4, 1.4.2)
acts_as_ferret (0.4.1)
capistrano (2.0.0)
cgi_multipart_eof_fix (2.5.0, 2.2)
daemons (1.0.9, 1.0.7)
dnssd (0.6.0)
fastthread (1.0.1, 1.0)
fcgi (0.8.7)
ferret (0.11.4)
gem_plugin (0.2.3, 0.2.2)
highline (1.2.9)
hpricot (0.6)
libxml-ruby (0.3.8.4)
mongrel (1.1.4, 1.0.1)
needle (1.3.0)
net-sftp (1.1.0)
net-ssh (1.1.2)
rails (1.2.6, 1.2.3)
rake (0.7.3)
RedCloth (3.0.4)
ruby-openid (1.1.4)
ruby-yadis (0.3.4)
rubygems-update (1.3.0)
rubynode (0.1.3)
sources (0.0.1)
sqlite3-ruby (1.2.1)
termios (0.9.4)[/quote]
I remember , that once I tried uninstall them before, I had to put the
full path to the gem.
May be it will work if I specify the full path to the gems, but I don't
know it.

Thanks in advance,
Mitko Kostov.

PS: I really didn't know where to post, so excuse me if I put it in the
wrong forum.
--
Posted via http://www.ruby-....

5 Answers

Eric Hodel

10/1/2008 6:49:00 PM

0

On Sep 28, 2008, at 05:54 AM, Mitko Kostov wrote:
> Hi, guys.
>
> Today I preinstalled Mac OS X and want to get rid of the old rails
> gems,
> but it gives me an error :
>
> [quote]bash-3.2# gem uninstall activesupport
> ERROR: While executing gem ... (Gem::InstallError)
> Unknown gem activesupport >= 0[/quote]
> But the gem is installed :
>
> [...]
>
> I remember , that once I tried uninstall them before, I had to put the
> full path to the gem.
> May be it will work if I specify the full path to the gems, but I
> don't
> know it.

What version of RubyGems?

Mitko Kostov

10/2/2008 6:35:00 AM

0

I found a solution, really silly though.

bash$ gem list -d

bash$ sudo gem uninstall --install-dir
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8
<package>

--
Posted via http://www.ruby-....

Ryan Davis

10/2/2008 5:55:00 PM

0


On Oct 1, 2008, at 23:35 , Mitko Kostov wrote:

> I found a solution, really silly though.
>
> bash$ gem list -d
>
> bash$ sudo gem uninstall --install-dir
> /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/
> gems/1.8
> <package>

Those gems were bundled by apple and are not meant to be removed by
users. This allows apple to do their own updates of the system gems.
You shouldn't remove them.

Emmanuel

11/28/2008 8:17:00 PM

0

On Oct 2, 9:54 am, Ryan Davis <ryand-r...@zenspider.com> wrote:
> On Oct 1, 2008, at 23:35 , Mitko Kostov wrote:
>
> > I found a solution, really silly though.
>
> > bash$ gem list -d
>
> > bash$ sudo gem uninstall --install-dir
> > /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/
> > gems/1.8
> > <package>
>
> Those gems were bundled by apple and are not meant to be removed by  
> users. This allows apple to do their own updates of the system gems.  
> You shouldn't remove them.

So I get the same error but as a new user on OSX , and experienced on
Ruby, I don t get why we should not? This sounds like an Apple thing
and now I am stuck with that error. I have not gotten even one update
on ruby package for now a year.. so I cannot just wait on apple to
update. So what is the process for me now to get rid of that error?

Tim Hunter

11/28/2008 10:46:00 PM

0

Emmanuel wrote:
> On Oct 2, 9:54 am, Ryan Davis <ryand-r...@zenspider.com> wrote:
>> On Oct 1, 2008, at 23:35 , Mitko Kostov wrote:
>>
>>> I found a solution, really silly though.
>>> bash$ gem list -d
>>> bash$ sudo gem uninstall --install-dir
>>> /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/
>>> gems/1.8
>>> <package>
>> Those gems were bundled by apple and are not meant to be removed by
>> users. This allows apple to do their own updates of the system gems.
>> You shouldn't remove them.
>
> So I get the same error but as a new user on OSX , and experienced on
> Ruby, I don t get why we should not? This sounds like an Apple thing
> and now I am stuck with that error. I have not gotten even one update
> on ruby package for now a year.. so I cannot just wait on apple to
> update. So what is the process for me now to get rid of that error?
>
>
>

I've installed my own version of Ruby and RubyGems. It takes just a few
minutes and puts you in control.

--
RMagick: http://rmagick.ruby...