From owner-freebsd-questions@FreeBSD.ORG Tue Oct 19 16:20:43 2004 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 0007116A4CE for ; Tue, 19 Oct 2004 16:20:42 +0000 (GMT) Received: from mail-relay4.mirrorimage.net (mail-relay4.mirrorimage.net [209.58.140.15]) by mx1.FreeBSD.org (Postfix) with ESMTP id A7D8243D66 for ; Tue, 19 Oct 2004 16:20:42 +0000 (GMT) (envelope-from FreeBSD@keyslapper.org) Received: from localhost (unknown [10.10.4.59]) by mail-relay4.mirrorimage.net (Postfix) with SMTP id 04A3669279 for ; Tue, 19 Oct 2004 12:20:42 -0400 (EDT) Received: by localhost (sSMTP sendmail emulation); Tue, 19 Oct 2004 12:23:10 -0400 Date: Tue, 19 Oct 2004 12:23:10 -0400 From: Louis LeBlanc To: freebsd-questions@freebsd.org Message-ID: <20041019162309.GA95132@keyslapper.org> Mail-Followup-To: freebsd-questions@freebsd.org References: <20041019142539.GA1772@akroteq.com> <20041019160447.GA3247@akroteq.com> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20041019160447.GA3247@akroteq.com> User-Agent: Mutt/1.5.6i Subject: Re: how to reinstall a port after a "make install clean"? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: freebsd-questions@FreeBSD.org List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 19 Oct 2004 16:20:43 -0000 On 10/19/04 08:04 AM, Andy Firman sat at the `puter and typed: > On Tue, Oct 19, 2004 at 10:44:59AM -0500, terry tyson wrote: > > On Tue, 19 Oct 2004 06:25:39 -0800, Andy Firman wrote: > > > > > > I need to rebuild the exim-mysql port with ldap lookups > > > and am having trouble since I did a make install clean. > > snip > > > > I don't know if this will solve your specific problem but doing a > > "make deinstall" has cleared up some issues for me when trying to > > reinstall. > > Thanks but...when I first installed exim-mysql I did "make install clean". > Per the handbook....quote: > "The make deinstall and make reinstall sequence does not work once > you have run make clean. If you want to deinstall a > port after cleaning, use pkg_delete(1)" > > So I used pkg_delete. Now I can't build exim-mysql with other options. > > Again this is my command I run in /usr/ports/mail/exim-mysql, after I do the pkg_delete. > > # make -DWITH_OPENLDAP=yes -DWITH_OPENSSL_BASE -DWITH_LDAP_LIB_TYPE=OPENLDAP22 \ > -DWITH_LOOKUP_LDAP=yes install clean > > Running exim -bV give me this: > Lookups: lsearch wildlsearch nwildlsearch iplsearch cdb dbm dbmnz dnsdb dsearch mysql nis nis0 passwd > and I also get errors in the log file when Exim tries an ldap lookup. > > It is not building Exim with those options.....Am I missing a step? > > After pkg_delete, do I need to do some other sort of cleaning? I usually use portupgrade to install newer versions of the ports, but on the rare occasion that doesn't work, I always use the following from the port directory: make && make deinstall reinstall clean Even when the port has been cleaned from the previous build, which is always the case (disk space can get pretty scarce if you keep all those ports built), this almost always works for me. On the very rare occasion that it doesn't, I at least get some kind of useful error message. HTH Lou -- Louis LeBlanc FreeBSD@keyslapper.org Fully Funded Hobbyist, KeySlapper Extrordinaire :) http://www.keyslapper.org ԿԬ QOTD: My mother was the travel agent for guilt trips.