From: John Joyce Date: 2008-01-27T07:40:18+09:00 Subject: Re: rubygems update/upgrade error... On Jan 26, 2008, at 3:29 PM, 7stud -- wrote: > 7stud -- wrote: >> $ sudo gem update --system >> Password: >> Updating RubyGems... >> Bulk updating Gem source index for: http://gems.rubyforge.org >> Attempting remote update of rubygems-update >> Successfully installed rubygems-update-1.0.0 >> Updating version of RubyGems to 1.0.1 >> ERROR: While executing gem ... (Errno::ENOENT) >> No such file or directory - >> /usr/lib/ruby/gems/1.8/gems/rubygems-update-1.0.1 >> >> ---- >> os = mac osx 10.4 > > That error message is a little confusing as well. Notice the version > numbers. The error message says that a program named > rubygems-update-1.0.0 was successfully installed(downloaded?). > Then it > says that something is "Updating version of RubyGems to 1.0.1", and > while attempting to do that, a program called rubygems-update-1.0.1 > couldn't be found. But the update program that was downloaded is > version 1.0.0, but the error message says that something is looking > for > an update program with version 1.0.1. Here is what the directory > /usr/lib/ruby/gems/1.8/ has in it: > > /usr/lib/ruby/gems/1.8/gems$ ls > fastercsv-1.2.1 rake-0.7.3 sources-0.0.1 > json-1.1.1 ruby-json-1.1.2 > libxml-ruby-0.5.2.0 rubygems-update-1.0.0 > > There is no file named rubygems-update-1.0.1, and why should there be > when the message says that rubygems-update-1.0.0 is what was > "installed". > > -- > Posted via http://www.ruby-forum.com/. > Ok, then first do this: gem -v find out what version you've got now. Should be 1.0.0 right? If not, go into rubygems-update-1.0.0 it is a directory. there is a readme in there check what's in it. You might need to do something with stuff in there first, then run the update again... or perhaps one of the paths was wrong in the updater? (wrong for your system) You might need to set an explicit path for the updater. You might even need to do a manual update. None the less, the latest version should be 1.0.1 I had 6.x or 7.x before updating it myself recently. I had Ruby 1.8.4 for a long time too. Then recently, some gems were giving errors, so I updated things and everything is working better.