From: Jim Weirich Date: 2004-07-01T12:37:25+09:00 Subject: Re: rubygems install error Ara.T.Howard wrote: > > i get this running install.rb > > ERROR: Failed to migrate the old gems located in... > /dmsp/reference/ruby-1.8.1/lib/ruby/gems/1.8 > ...to the /dmsp/reference/ruby-1.8.1/lib/ruby/gems/1.8/gems directory > You should move them manually, or your gems DB will be an invalid state Hi Ara! This is what is happening: Way back when rubygems started, we dumped information directly into the .../ruby/gems/1.8 directory. As the project matured and more information was added to that directory, it because obvious that the installed gem directories really ought to be installed in subdirectory (namely .../ruby/gems/1.8/gems). At that time the installer was written to automatically migrate old gem repositories to the new format. Unfortunately in reviewing the code for the installer, I see the criteria used to move the files checks for a dash/digit in the file name. Since your directory path includes "ruby-1" in it, the criteria is falsely triggered and an incorrect file (I think it is the cache directory from your backtrace) is attempted to be moved. The install continues normally after that point, so unless you _really_ do have old gems in the .../ruby/gems/1.8 directory, your install should be fine. I've added the install bug to my bug list. Thanks for the feedback. -- -- Jim Weirich jim@weirichhouse.org http://onestepback.org ----------------------------------------------------------------- "Beware of bugs in the above code; I have only proved it correct, not tried it." -- Donald Knuth (in a memo to Peter van Emde Boas)