# I got a problem when I run "gem clean"

**URL:** <https://www.ruby-forum.com/t/i-got-a-problem-when-i-run-gem-clean/154307>\
**Category:** Rails\
**Created:** [November 27, 2008, 3:26pm UTC](https://www.ruby-forum.com/t/i-got-a-problem-when-i-run-gem-clean/154307 "2008-11-27T15:26:31Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![cfc](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/e9a140/32.png) [@cfc](https://www.ruby-forum.com/u/cfc)\
**Post date:** [November 27, 2008, 3:26pm UTC](https://www.ruby-forum.com/t/i-got-a-problem-when-i-run-gem-clean/154307/1 "2008-11-27T15:26:31Z")

</div>

I bought a new Mac (:P) in these days, and I found that Leopard built-  
in rails 1.2.6  
But it’s rails 2.2.2 right now, so I upgraded Rubygems before I  
upgraded rails…  
and after I upgraded Rubygems and Rails… I run “gem clean” and got  
the error message:

bash-3.2# gem clean  
Cleaning up installed gems…  
Attempting to uninstall rails-1.2.6  
ERROR: While executing gem … (Gem::InstallError)  
Unknown gem rails = 1.2.6

hmm… I don’t know how to solve it ☹  
Could anyone tell me how to solve it? thanks!

---

<div class="post-metadata">

**Author:** ![cfc](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/e9a140/32.png) [@cfc](https://www.ruby-forum.com/u/cfc)\
**Post date:** [November 27, 2008, 3:39pm UTC](https://www.ruby-forum.com/t/i-got-a-problem-when-i-run-gem-clean/154307/2 "2008-11-27T15:39:59Z")

</div>

If I rwmember correctly gem doesn’t like removing gems from /System.  
My advice would be to not worry about it -rubygems is perfectly happy  
with multiple versions of gems

Fred

Sent from my iPhone
