From owner-freebsd-questions@FreeBSD.ORG Tue Dec 9 09:44:48 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E0FB716A4CE for ; Tue, 9 Dec 2003 09:44:48 -0800 (PST) Received: from ms-smtp-02-eri0.southeast.rr.com (ms-smtp-02-lbl.southeast.rr.com [24.25.9.101]) by mx1.FreeBSD.org (Postfix) with ESMTP id E646343D30 for ; Tue, 9 Dec 2003 09:44:46 -0800 (PST) (envelope-from wegster@mindcore.net) Received: from mindcore.net (rdu162-234-100.nc.rr.com [24.162.234.100]) hB9HiId2009105; Tue, 9 Dec 2003 12:44:23 -0500 (EST) Message-ID: <3FD609EF.8020104@mindcore.net> Date: Tue, 09 Dec 2003 12:44:15 -0500 From: Scott W User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.5) Gecko/20031007 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Xpression References: <000b01c3be6e$7142a960$0901a8c0@bloodlust> In-Reply-To: <000b01c3be6e$7142a960$0901a8c0@bloodlust> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Symantec AntiVirus Scan Engine cc: FreeBSD-questions Subject: Re: export PATH ??? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 09 Dec 2003 17:44:49 -0000 Xpression wrote: >Hi again list, I've posted a question recently about >uninstalling packages, in fact, when I installing changin >the prefix path (eg.--prefix=/usr/local/package_name) it >creates me some subdirs. The trouble is that I can't execute >any installed program, until I put, for example: cd >/usr/local/package_name/bin && ./program, anyone with this >issue ??? Thanks... > > >_______________________________________________ >freebsd-questions@freebsd.org mailing list >http://lists.freebsd.org/mailman/listinfo/freebsd-questions >To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" > > > This isn't really a PATH issue, it's a fundamental dir structure layout problem. I think I know what you're trying to do (keep all user-installed programs seperate), but if you insist on doing it that way (as opposed to leaving/using the default prefix /usr/local), you'll need to create symlinks into /usr/local/bin, which your default PATH presumably includes. Bear in mind there's no guarantee that all ports will relocate to a different dfefault directory and work properly- they should, but I've ran across several that will look in the wrong/old location for config files, log files, etc... The alternative is ugly, evil, and can slow down shell response significantly, which would require modifying your PATH for each and every package you install in the manner you specfied... I've got to ask- what's wrong with leaving the default prefix alone? Scott