From: Dan Uznanski Date: 2006-12-19T19:35:38+09:00 Subject: Re: Please help fixing gems on OSX > > I'd like to know how this happens because I certainly haven't been > able to reproduce it. I suspect something happened before install, > not after. > I'd especially like to see `ls -l lib/rubygems` from the unpacked > tarball that produced this install, and I'd like to see the md5 hash > of the downloaded tarball. > > md5 sum of rubygems-0.9.0.tgz: 5d496e1f415b8b4033ab867f01d1161f (174321 bytes) of note in tar -zxvf rubygems-0.9.0.tgz: both the Rakefile and gem_commands.rb show up twice: rubygems-0.9.0/._Rakefile rubygems-0.9.0/Rakefile rubygems-0.9.0/lib/rubygems/._gem_commands.rb rubygems-0.9.0/lib/rubygems/gem_commands.rb of note in ls -lr of the original attempted install: both Rakefile and gem_commands.rb show up twice, like this: .: -rwxr-xr-x 1 vorn staff 0 17 Dec 15:06 Rakefile -rw-r--r-- 1 vorn staff 9330 28 Jun 07:42 Rakefile.1 ./lib/rubygems: -rw-r--r-- 1 vorn staff 41032 21 Jun 20:44 gem_commands.1.rb -rwxr-xr-x 1 vorn staff 0 17 Dec 15:06 gem_commands.rb I'm not sure, but I believe the original decompression (though I don't recall how it was done - perhaps my browser did it for me? it's the latest release Safari under 10.3.9) "cleaned up" the filenames of lib/rubygems/._gem_commands.rb and of ._Rakefile, then renamed the subsequent "real" ones in usual Mac style so as not to stomp. ._gem_commands.rb and ._Rakefile are identical binary files. file says it's an "AppleDouble encoded Macintosh file". Here is a hexdump. 0000000 0005 1607 0002 0000 4d61 6320 4f53 2058 0000010 2020 2020 2020 2020 0002 0000 0009 0000 0000020 0032 0000 0020 0000 0002 0000 0052 0000 0000030 0000 0000 0000 454d 4178 0000 0000 0000 0000040 0000 0000 0000 0000 0000 0000 0000 0000 I will now go post all this under the bug report too. My proposed solution: if these two files are not necessary for the installation, remove them! Dan