From: Mike Wyer Date: 2003-04-03T22:34:20+09:00 Subject: Re: Tricky install question On Thu, 3 Apr 2003 nobu.nokada@softhome.net wrote: > Hi, > > At Thu, 3 Apr 2003 21:17:59 +0900, > Mike Wyer wrote: > > I'm trying to install ruby in our production environment, but that means I > > have to "install" the code in a staging area, and then run our tools to > > distribute it. The situation is something like this: > > > > Final location is: /prod/language/ruby/1.6.8/ > > Compile area is: /dev/language/ruby/1.6.8/build/ > > Staging area is: /dev/language/ruby/1.6.8/install/ > > What's your platform? Doesn't seem UNIX... If it's DOSISH > system, 1.6 or later are relocatable. It's a linux architecture where /prod is read-only NFS and /dev is read-write. The problem is getting the right options to "make" to get the relocation mentioned above. > > So ruby must assume it's going to be running from > > /prod/language/ruby/1.6.8, but it has to install into > > /dev/language/ruby/1.6.8/install > > > > Is there an easy way of persuading instruby to do the right thing in this > > situation? > > > > Setting DESTDIR to /dev gives /dev/prod/language/ruby/1.6.8/ which is no > > good :) > > If your system supports symbolic link, you could use it. The /prod environment is read-only (hence the staging mechanism), so symlinks won't do the trick. I think instruby.rb is not designed for this kind of install, but I would love to be wrong! Cheers, Mike -- Mike Wyer www.wyer.org/mike 07974 254007 "I want to die peacefully in my sleep like my Grandfather... ... not screaming and yelling like the passengers in his car"