From owner-freebsd-questions Wed Feb 7 21: 6:59 2001 Delivered-To: freebsd-questions@freebsd.org Received: from rm-rstar.sfu.ca (rm-rstar.sfu.ca [142.58.120.21]) by hub.freebsd.org (Postfix) with ESMTP id 3B7A637B401 for ; Wed, 7 Feb 2001 21:06:40 -0800 (PST) Received: from fraser.sfu.ca (tmchow@fraser.sfu.ca [142.58.101.25]) by rm-rstar.sfu.ca (8.10.1/8.10.1/SFU-5.0H) with ESMTP id f1856aM22109; Wed, 7 Feb 2001 21:06:37 -0800 (PST) Received: from localhost (tmchow@localhost) by fraser.sfu.ca (8.9.2/8.9.2/SFU-5.0C) with ESMTP id VAA12856; Wed, 7 Feb 2001 21:06:06 -0800 (PST) X-Authentication-Warning: fraser.sfu.ca: tmchow owned process doing -bs Date: Wed, 7 Feb 2001 21:06:06 -0800 (PST) From: Trevin Chow To: Mike Meyer Cc: Subject: Re: Changing location for install of port? In-Reply-To: <14978.681.125028.573454@guru.mired.org> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG I guess I have no real reason why I want to install certain applications in their own directories.. Just a bit cleaner to me I suppose. I have one question though: Why does installing from source to a diff't diretory prevent dependency problems later on with future applications? What is different things take place? On Wed, 7 Feb 2001, Mike Meyer wrote: > No, don't edit the Makefile. You can set PREFIX just like you set > KERNEL (or KERNCONF) when building a kernel: > > make install PREFIX=/usr/local/apache > > Two caveats: > > 1) Not all ports are PREFIX clean. After you do the "make install", do > a "make deinstall" and see if it complains about missing files. If so, > it won't work. If it doesn't complain - you may still have problems. > > 2) This breaks dependencies. If you later install a port that depends > on apache having been installed with PREFIX=/usr/local, it won't find > the things it's looking for. You can get around that by setting > LOCALBASE instead of PREFIX (PREFIX is set to LOCALBASE unless you > override PREFIX). Of course, if you're installing a port that depends > on two ports that were installed with different values of PREFIX, you > may well be FUBAR. > > So, unless you've got a really good reason for doing things that way, > you should install all ports with the same LOCALBASE setting (which > defaults to /usr/local). In this case, you can change the log file > location in the apache httpd.conf file after the install. If you > really want to put it all in a separate directory, you might be better > off installing from the original sources instead of ports. > > -- > Mike Meyer http://www.mired.org/home/mwm/ > Independent WWW/Perforce/FreeBSD/Unix consultant, email for more information. > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message