From: Mike Wyer Date: 2003-04-05T01:10:34+09:00 Subject: Re: Relocatable install patch On Fri, 4 Apr 2003, Jim Freeze wrote: > On Friday, 4 April 2003 at 23:23:23 +0900, Mike Wyer wrote: > > On Fri, 4 Apr 2003, Mike Wyer wrote: > > > > > Hi, > > > > > > This follows on from my "Tricky install question" earlier. This patch > > > allows "make" to supply different values at build time and install time > > > for key paths. So a > > > > > > ./configure --prefix=/foo > > > make > > > make PREFIX=/bar install > > > > First problem: it fails for ext/ > > I forgot about extmk.rb. Hopefully I should have something better soon :) > > > > This is in the right direction for what I need, a binary install. > I would like to make ruby on machine A and install on > machine B. > > A: ./configure --prefix=/onA > A; make > now tar it up and send it to B > B make PREFIX=/onB install > but I want the whole install tree below /onB > and I want it to look for libraries on /onB. > > Is this possible? I'm not sure what I'm working towards will help you much. My scenario is: B: ./configure --prefix=/onA/foo/ruby B: make B: make PREFIX=/onB/bar/ruby/install install So the code always expects to run from /onA/foo even though it is being built and installed on B. Lots of the distributions are packaging ruby these days (SuSE for one). They may already have solved the binary-relocation problem. 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"