Gem cleanup and rails 1.2.6 problem

I’ve updated rails and other gems following:
http://wiki.rubyonrails.org/rails/pages/HowtoUpgrade
When I try to run: gem cleanup, I get the following error:

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

Googling the problem, I found: http://www.ruby-forum.com/topic/170342
Running:
gem uninstall --install-dir -/System/Library/Frameworks/Ruby.framework/
Versions/1.8/usr/lib/ruby/gems/1.8 rails

I get:
ERROR: While executing gem … (Gem::InstallError)
Unknown gem rails >= 0

How can I uninstall rails 1.2.6? also, since gem cleanup gets an
error, I can’t clean up any other gems…

Elle

On Thu, Feb 12, 2009 at 9:22 PM, elle removed_email_address@domain.invalid wrote:

Googling the problem, I found: http://www.ruby-forum.com/topic/170342
Running:
gem uninstall --install-dir -/System/Library/Frameworks/Ruby.framework/
Versions/1.8/usr/lib/ruby/gems/1.8 rails

Become root, and then do it this way:

gem uninstall --install-dir
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8
rails

HTH

Charles

On Fri, Feb 13, 2009 at 2:43 PM, elle removed_email_address@domain.invalid wrote:

Elle

You should be OK with sudo. Can you post your exact command line, and
the
output from gem list -d rails

HTH

Charles

The problem is with your path. You want /System/Library…
but you are doing -/System/Library…

See the difference?

Cheers–

Charles

gem list -d rails gives me:

*** LOCAL GEMS ***

rails (2.2.2, 1.2.6)
Author: David Heinemeier H.
Rubyforge: http://rubyforge.org/projects/rails
Homepage: http://www.rubyonrails.org
Installed at (2.2.2): /Library/Ruby/Gems/1.8
(1.2.6): /System/Library/Frameworks/Ruby.framework/
Versions/1.8/usr/lib/ruby/gems/1.8

Web-application framework with template engine, control-flow

layer,
and ORM.

Then running:
sudo gem uninstall --install-dir -/System/Library/Frameworks/
Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8 rails
gives me:

ERROR: While executing gem … (Gem::InstallError)
Unknown gem rails >= 0

Elle

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

Sponsor our Newsletter | Privacy Policy | Terms of Service