elle
1
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: Problem with "gem cleanup" on OS X 10.5 - Ruby - Ruby-Forum
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
elle
2
On Thu, Feb 12, 2009 at 9:22 PM, elle [email protected] wrote:
Googling the problem, I found: Problem with "gem cleanup" on OS X 10.5 - Ruby - Ruby-Forum
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
elle
4
On Fri, Feb 13, 2009 at 2:43 PM, elle [email protected] 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
elle
5
The problem is with your path. You want /System/Library…
but you are doing -/System/Library…
See the difference?
Cheers–
Charles
elle
7
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