From: Chad Fowler Date: 2004-10-14T03:01:35+09:00 Subject: Re: Gems Install Problemj On Thu, 14 Oct 2004 01:27:13 +0900, jim@freeze.org wrote: > * Chad Fowler [2004-10-14 01:17:07 +0900]: > > > It's part of the rubygems installer. So, it should be in the > > directory where you untarred the rubygems distribution. > > That was the problem. It was owned by root. > So, geneology was this: > > 1) Tried to install gems into /usr/local/ with su > 2) #1 failed At this point, the sources gem was actually _built_ by the installer (as root). It gets built from a specification whenever you run install.rb. So the .gem file was generated as root and therefore inaccessible (as per your umask) to other users. > 3) Built and installed local version of ruby w/o root. > 4) installed gems (failed) > > So, if I had sudo and had used 'sudo ruby install.rb' to install > gems, would the permissions for source not been root? > > This explains why #3 failed, but not #1. > > -- I'm glad we know why #3 failed. I'm still unsure on #1. I see where this is happening in the code, but it may take some more focused time to track down how it could have gotten in this state. Perhaps Gavin could help on this front, as the specification stuff is probably best understood by him as of now. Chad