Date: Fri, 29 Jun 2001 13:57:44 -0500 From: Mike Meyer <mwm@mired.org> To: Cynic <cynic@mail.cz> Cc: questions@freebsd.org Subject: Re: ./configure-ing a port Message-ID: <15164.53160.314164.541121@guru.mired.org> In-Reply-To: <21316055@toto.iv>
next in thread | previous in thread | raw e-mail | index | archive | help
Cynic <cynic@mail.cz> 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, ... <mike -- Mike Meyer <mwm@mired.org> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?15164.53160.314164.541121>