Date: Fri, 25 Oct 2002 17:01:52 +0100 From: Matthew Seaman <m.seaman@infracaninophile.co.uk> To: freebsd-questions@FreeBSD.ORG Subject: Re: squirrel mail install-from-ports problem.... Message-ID: <20021025160152.GA9908@happy-idiot-talk.infracaninophi> In-Reply-To: <1035558247.1654.16.camel@linux> References: <20021025013013.98103.qmail@web20110.mail.yahoo.com> <1035558247.1654.16.camel@linux>
next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, Oct 25, 2002 at 04:04:07PM +0100, Simon Dick wrote: > On Fri, 2002-10-25 at 02:30, Bsd Neophyte wrote: > > i'm getting the following error and it says that this should be reported > > to dirk@freebsd.org... > > > > but before i do that, i wanted some input to see if i could resolve this > > issue in a relatively simply way. > > > > is this an issue with how i installed apache... should i reinstall if with > > the "--with-apxs2" option? > > I'd suggest you install PHP4 individually first, eg: > cd /usr/ports/www/mod_php4 > make -DWITH_APACHE2 install clean > > Then install squirrelmail, it looks like you have Apache 2 installed and > PHP can't autodetect it so it needs that -D option set. Unfortunately, the Makefile for the squirrelmail port says: RUN_DEPENDS+= ${LOCALBASE}/libexec/apache/libphp4.so:${PORTSDIR}/www/mod_php4 which means that if ${LOCALBASE}/libexec/apache/libphp4.so cannot be found at compile/install time, the squirrelmail port will try and install mod_php4 to fulfil the dependency. Since you've already installed mod_php4 with the -DWITH_APACHE2 flag, causing the loadable module to be installed as ${LOCALBASE}/libexec/apache2/libphp4.so, the system will try and reinstall mod_php4, which you've already discovered doesn't work. One solution is to patch the squirrelmail port Makefile: --- Makefile.orig Fri Sep 20 17:38:46 2002 +++ Makefile Fri Oct 25 16:49:45 2002 @@ -13,7 +13,11 @@ MAINTAINER= simond@irrelevant.org -RUN_DEPENDS+= ${LOCALBASE}/libexec/apache/libphp4.so:${PORTSDIR}/www/mod_php4 +.if defined(WITH_APACHE2) +RUN_DEPENDS+= ${LOCALBASE}/libexec/apache2/libphp4.so:${PORTSDIR}/www/mod_php4 +.else +RUN_DEPENDS+= ${LOCALBASE}/libexec/apache/libphp4.so:${PORTSDIR}/www/mod_php4 +.endif USE_BZIP2= yes NO_BUILD= yes Then make -DWITH_APACHE2 The same problem will affect all ports that install PHP code. See for instance: o [2002/08/12] ports/41577 ports port security/acid won't see apache2+mod_php4 o [2002/09/21] ports/43225 nbm phpPgAdmin port doesn't work with Apache2 by default o [2002/09/21] ports/43227 ports squirrelmail port doesn't support Apache2 o [2002/10/05] ports/43706 nbm Make databases/phpmyadmin operate with apache2 Cheers, Matthew -- Dr Matthew J Seaman MA, D.Phil. 26 The Paddocks Savill Way Marlow Tel: +44 1628 476614 Bucks., SL7 1TH UK 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?20021025160152.GA9908>