# How could I uninstall the build-in gems in Leopard

**URL:** <https://www.ruby-forum.com/t/how-could-i-uninstall-the-build-in-gems-in-leopard/153445>\
**Category:** Rails\
**Created:** [November 17, 2008, 10:52am UTC](https://www.ruby-forum.com/t/how-could-i-uninstall-the-build-in-gems-in-leopard/153445 "2008-11-17T10:52:10Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [November 17, 2008, 10:52am UTC](https://www.ruby-forum.com/t/how-could-i-uninstall-the-build-in-gems-in-leopard/153445/1 "2008-11-17T10:52:10Z")

</div>

I am a newbie on the Mac and ROR. I am trying to install the rails on  
my Leopard today and get its done. But I found for many of the gems,  
there are tow versions installed on my machine. There is a lower  
version installed at /System/Library/Frameworks/Ruby.framework/  
Versions/1.8/usr/lib/ruby/gems/1.8 and an updated version I installed  
today at /Library/Ruby/Gems/1.8

For example,

stanley$ gem list -d rake -a

\*\*\* LOCAL GEMS \*\*\*

rake (0.8.3, 0.7.3)  
Author: Jim W.  
Rubyforge: [http://rubyforge.org/projects/rake](http://rubyforge.org/projects/rake)  
Homepage: [http://rake.rubyforge.org](http://rake.rubyforge.org)  
Installed at (0.8.3): /Library/Ruby/Gems/1.8  
(0.7.3): /System/Library/Frameworks/Ruby.framework/  
Versions/1.8/usr/lib/ruby/gems/1.8

And if I run rake -V, it will tell me that the current version  
executed is 0.8.3.

But if I tried to cleanup the old version installed on my machine, if  
failed, as the following:

stanley$ sudo gem cleanup rake  
Password:  
Cleaning up installed gems…  
:0:Warning: Gem::SourceIndex#search support for Regexp patterns is  
deprecated  
Attempting to uninstall rake-0.7.3  
ERROR: While executing gem … (Gem::InstallError)  
Unknown gem rake = 0.7.3

I am wondering how could I uninstall the old version of these gems?

And another question is that I checked the rake file executed which  
is /usr/bin/rake  
I didn’t find any information or path set there that told the console  
which rake it should call? If I wanna to use an old version of rake or  
even rails, how should I do?

Thanks

---

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [November 17, 2008, 11:05am UTC](https://www.ruby-forum.com/t/how-could-i-uninstall-the-build-in-gems-in-leopard/153445/2 "2008-11-17T11:05:06Z")

</div>

On Nov 17, 8:46 am, “removed\_email\_address@domain.invalid” [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> I am wondering how could I uninstall the old version of these gems?
> 
> And another question is that I checked the rake file executed which  
> is /usr/bin/rake  
> I didn’t find any information or path set there that told the console  
> which rake it should call? If I wanna to use an old version of rake or  
> even rails, how should I do?

To be honest, I wouldn’t bother. If it’s in /System, leaving it alone  
is generally a good idea. It doesn’t do any harm having multiple  
versions of gems installed. The executables gem installs try and load  
the most recent version of the associated gem. You can force a  
particular one, eg

rake _0.7.3_

runs that version of rake.

Fred

---

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [November 17, 2008, 10:24pm UTC](https://www.ruby-forum.com/t/how-could-i-uninstall-the-build-in-gems-in-leopard/153445/3 "2008-11-17T22:24:48Z")

</div>

On our setups, we simply use the built-in mac stuff and then update the  
old  
versions.

gem update --system  
gem install rails

You can safely ignore the old versions without a problem.

On Mon, Nov 17, 2008 at 4:04 AM, Frederick C. \<

---

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [January 9, 2009, 3:58pm UTC](https://www.ruby-forum.com/t/how-could-i-uninstall-the-build-in-gems-in-leopard/153445/4 "2009-01-09T15:58:30Z")

</div>

Thanks for the tip Brian, I am trying it out now. I did a ‘gem update  
rails’ and it started to cough up the following:

michael@Mac-Pro:~/Desktop/rails\_demo$ rails blog  
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/  
1.8/rubygems.rb:379:in `report\_activate\_error’: RubyGem version error:  
rake(0.7.3 not \>= 0.8.3) (Gem::LoadError)

Will report after trying this. Thanks 🙂

Cheers  
Mike

---

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [January 9, 2009, 3:58pm UTC](https://www.ruby-forum.com/t/how-could-i-uninstall-the-build-in-gems-in-leopard/153445/5 "2009-01-09T15:58:31Z")

</div>

It works!! Thanks 🙂

---

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [November 23, 2008, 3:48pm UTC](https://www.ruby-forum.com/t/how-could-i-uninstall-the-build-in-gems-in-leopard/153445/6 "2008-11-23T15:48:50Z")

</div>

Thanks for both of you. It looks like the simple way is ignoring it…
