From owner-freebsd-questions Fri Jun 29 11:57:48 2001 Delivered-To: freebsd-questions@freebsd.org Received: from guru.mired.org (okc-27-141-144.mmcable.com [24.27.141.144]) by hub.freebsd.org (Postfix) with SMTP id 7612037B403 for ; Fri, 29 Jun 2001 11:57:45 -0700 (PDT) (envelope-from mwm@mired.org) Received: (qmail 65510 invoked by uid 100); 29 Jun 2001 18:57:44 -0000 From: Mike Meyer MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15164.53160.314164.541121@guru.mired.org> Date: Fri, 29 Jun 2001 13:57:44 -0500 To: Cynic Cc: questions@freebsd.org Subject: Re: ./configure-ing a port In-Reply-To: <21316055@toto.iv> X-Mailer: VM 6.90 under 21.1 (patch 14) "Cuyahoga Valley" XEmacs Lucid X-face: "5Mnwy%?j>IIV\)A=):rjWL~NB2aH[}Yq8Z=u~vJ`"(,&SiLvbbz2W`;h9L,Yg`+vb1>RG% *h+%X^n0EZd>TM8_IB;a8F?(Fb"lw'IgCoyM.[Lg#r\ Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Cynic types: > Hi there, > > I wanted to install a port (mysql323-server [3.23.39] in this particular > case), and since I'm new to FreeBSD, I read the "Using ports" chapter in > the Handbook. Suprised by how little info it carries I told my self "Use > the Source, Luke", and got under the impression that the right way to > configure a port is # make CONFIGURE_ARGS[+]="..." [configure-or-latter- > target]. > > However, after issuing this sequence: > # make extract > # make CONFIGURE_ARGS="--prefix=/usr/local/mysql ..." > # make install > > installed mysql in /usr/local. Is this a bug in the port, or is this NOT > the way to ./configure a software installed from port? CONFIGURE_ARGS is passed to the ./configure software, but it is otherwise ignored by the port, so that the installation may not see it at all. Even if the installation does see it, it won't get passed to the package system so that "make deinstall" and "pkg_delete" won't work properly. Use PREFIX to set the prefix for a port: # make install PREFIX=/usr/local/mysql That works for *all* ports. If it doesn't, it's considered a bug in the port. Having said that, be warned that other ports may still look for mysql in the standard place, and so may try to install it there when you build them. Those that don't check for an absolute file will search along $PATH for executables, and if they don't find it, ... 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