From owner-freebsd-questions Sun Oct 8 0:29: 7 2000 Delivered-To: freebsd-questions@freebsd.org Received: from static.unixfreak.org (static.unixfreak.org [63.198.170.139]) by hub.freebsd.org (Postfix) with ESMTP id 904CB37B66C for ; Sun, 8 Oct 2000 00:29:04 -0700 (PDT) Received: by static.unixfreak.org (Postfix, from userid 1000) id 1A1EB1F21; Sun, 8 Oct 2000 00:29:04 -0700 (PDT) Subject: Re: Installing a port to a differant location than the default In-Reply-To: <39E01954.6D2C2A9C@wiegand.org> "from Chip at Oct 7, 2000 11:51:00 pm" To: Chip Date: Sun, 8 Oct 2000 00:29:04 -0700 (PDT) Cc: Mike Meyer , dima@unixfreak.org, questions@freebsd.org From: Dima Dorfman Reply-To: dima@unixfreak.org X-Mailer: ELM [version 2.4ME+ PL82 (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII Message-Id: <20001008072904.1A1EB1F21@static.unixfreak.org> Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > Mike Meyer wrote: > > > > Dima Dorfman writes: > > > > Dima Dorfman writes: > > > > > > On Sat, Oct 07, 2000 at 06:37:38AM -0700, Chip wrote: > > > > > > > I have several hard disks in my pc, with the standard /usr on the > > > > > > > first disk with the standard directories, but the other two disks > > > > > > > are setup as /usr2 and /usr3. Is there a way to install a port or > > > > > > > package into one either /usr2 or /usr3? > > > > > > pkg_add -p or setting $PREFIX for /usr/ports. > > > > > Or, if that doesn't work (I tried using PREFIX= some time ago but it > > > > > didn't change the prefix), try: > > > > Some ports are broken, and don't honor PREFIX. Worse yet, some are > > > > partly broken, and have some things that install in PREFIX, and some > > > > that install in /usr/local. > > > I don't know about PREFIX, but DESTDIR always seems to work for me. > > > > Prefix seems to work about 80% the time for me. Since all DESTDIR > > really does is set LOCALBASE (and things that depend on it - like > > PREFIX), I'd expect it to be about the same. > > > > DESTDIR doesn't seem to solve those problems. For instance, > > sysutils/idled *insists* that it's going to install things in > > /usr/local. Setting neither PREFIX nor DESTDIR corrects this. As a > > result, when it tries to strip the installed binary (from the right > > place), it doesn't work. > > > > > > I used the following command in the /usr/ports/misc/less > directory - > > make DESTDIR=/usr2 install > > and it didn't install to /usr2, and there were no changes or > files > written to /usr2 at all. Which version of FreeBSD is this? Somewhere between 4.0 and 4.1 less became part of the base system. > So I then tried to install amanda the same way, and it did create > a new usr directory in /usr2, with lots of subdirectories, and > appeared to install amanda, I see the files there, but nothing > runs. Is /usr2/{s}bin in your path? Or are you using the full path names? > When I run pkg_delete to remove amanda it responds with errors > about > 'perhaps the directory doesn't really exist', many many times. I > can > see the directory. But then I don't really care about that. Just > thought I'd report my findings. I don't know what amanda is or how it's supposed to be used, but is it actually installed? Can you see its files in /usr2? Hope this helps -- Dima Dorfman Finger dima@unixfreak.org for my public PGP key. If the government wants us to behave, they should set a better example! To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message