Unable to install old gems

M

Mitko Kostov

Hi, guys.

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

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

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)
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.
 
E

Eric Hodel

Hi, guys.

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

bash-3.2# gem uninstall activesupport
ERROR: While executing gem ... (Gem::InstallError)
Unknown gem activesupport >= 0
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?
 
M

Mitko Kostov

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>
 
R

Ryan Davis

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.
 
E

Emmanuel

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?
 
T

Tim Hunter

Emmanuel said:
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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,982
Messages
2,570,185
Members
46,736
Latest member
AdolphBig6

Latest Threads

Top