From owner-freebsd-questions@FreeBSD.ORG Wed Jan 13 09:09:51 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B9B26106566B for ; Wed, 13 Jan 2010 09:09:51 +0000 (UTC) (envelope-from m.seaman@infracaninophile.co.uk) Received: from smtp.infracaninophile.co.uk (gate6.infracaninophile.co.uk [IPv6:2001:8b0:151:1::1]) by mx1.freebsd.org (Postfix) with ESMTP id 2D2608FC0C for ; Wed, 13 Jan 2010 09:09:51 +0000 (UTC) Received: from happy-idiot-talk.infracaninophile.co.uk (localhost [IPv6:::1]) (authenticated bits=0) by smtp.infracaninophile.co.uk (8.14.4/8.14.3) with ESMTP id o0D99i0k079000; Wed, 13 Jan 2010 09:09:45 GMT (envelope-from m.seaman@infracaninophile.co.uk) X-DKIM: Sendmail DKIM Filter v2.8.3 smtp.infracaninophile.co.uk o0D99i0k079000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=infracaninophile.co.uk; s=201001-infracaninophile; t=1263373786; bh=SVyLMnpQXejxo4fPAWVfNRKz92GGd0aEUoOjplp3b+M=; h=Message-ID:Date:From:MIME-Version:To:CC:Subject:References: In-Reply-To:Content-Type:Cc:Content-Type:Date:From:In-Reply-To: Message-ID:Mime-Version:References:To; z=Message-ID:=20<4B4D8DD2.3000500@infracaninophile.co.uk>|Date:=20W ed,=2013=20Jan=202010=2009:09:38=20+0000|From:=20Matthew=20Seaman= 20|Organization:=20Infracaninophi le|User-Agent:=20Thunderbird=202.0.0.23=20(X11/20091129)|MIME-Vers ion:=201.0|To:=20PJ=20|CC:=20freebsd-ques tions@freebsd.org|Subject:=20Re:=20cannot=20install=20apache22=20o n=20FBSD=208.0|References:=20<4B4D7ABE.3050001@videotron.ca>|In-Re ply-To:=20<4B4D7ABE.3050001@videotron.ca>|X-Enigmail-Version:=200. 95.6|Content-Type:=20multipart/signed=3B=20micalg=3Dpgp-sha256=3B= 0D=0A=20protocol=3D"application/pgp-signature"=3B=0D=0A=20boundary =3D"------------enig07DD2AE5B571021D0FA37357"; b=KELAQ1oZK0funbDjUSCAFPGV+ZYrY9++KlwpmYxn6UtYBma/KkHlBNxVrb74AiwMD tGV73eEwm7qPQNy5uvPOEx8Hp8Nu2UaIs3SogKlrRVg7A8wp1ok9F7g8iudNGZpuwD 60nzRceKQcgf13A4xdAR5GmKrMiFHE4IepD5Myp8= X-Authentication-Warning: happy-idiot-talk.infracaninophile.co.uk: Host localhost [IPv6:::1] claimed to be happy-idiot-talk.infracaninophile.co.uk Message-ID: <4B4D8DD2.3000500@infracaninophile.co.uk> Date: Wed, 13 Jan 2010 09:09:38 +0000 From: Matthew Seaman Organization: Infracaninophile User-Agent: Thunderbird 2.0.0.23 (X11/20091129) MIME-Version: 1.0 To: PJ References: <4B4D7ABE.3050001@videotron.ca> In-Reply-To: <4B4D7ABE.3050001@videotron.ca> X-Enigmail-Version: 0.95.6 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="------------enig07DD2AE5B571021D0FA37357" X-Virus-Scanned: clamav-milter 0.95.3 at happy-idiot-talk.infracaninophile.co.uk X-Virus-Status: Clean X-Spam-Status: No, score=-3.0 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED, DKIM_VERIFIED,NO_RELAYS autolearn=ham version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on happy-idiot-talk.infracaninophile.co.uk Cc: freebsd-questions@freebsd.org Subject: Re: cannot install apache22 on FBSD 8.0 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 13 Jan 2010 09:09:51 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig07DD2AE5B571021D0FA37357 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable PJ wrote: > Gentlemen, > I am absolutely stupefied by apache22, php5, php5-extensions and > phpmysql refusing to be updated or installed > I did manage to do one installation on a freshly upgraded box from 7.2 > to 8.0 but with very frustrating and time consuming efforts. I still > don't know how I managed, but it seems to work, for the moment anyway. > Could someone explain to me why there is a problem with apache22, php5 > and the rest - when doing an upgrade from 7.2 to 8.0. > I followed the instructions in the handbood to the letter and both time= s > there is a problem. > Am I doing something that is not evident in the instructions. Even the > apache site states very clearly that and update is about as simple as > could be. > The long list of errors when installing apache seem to deal with a lot > of undeclared stuff (first use in this function) for a lot of uldap > stuff like cache, connection etc. etc. > How does one deal with this as there seems to be nothing on google. > TIA You're installing quite a complex interconnected group of ports there, an= d it can go wrong in any number of new and exciting ways. We can't tell ex= actly what has gone wrong from what you tell us -- but it's almost certainly a problem fairly high up the dependency tree which is screwing things up fo= r all of the ports lower down you're having trouble with. As a general strategy for making this work, probably the most effective route is 'back to square one.' Rip out everything that apache, php etc. depend on, and start again from scratch. This includes all options setti= ngs for those ports under /var/db/ports/. When reinstalling a group of interconnected ports like this, I find it beneficial to sort out all of the OPTIONS settings over the whole depende= ncy tree before trying to compile anything. One of the unfortunate character= istics of the way OPTIONS processing works at the moment is that changing an opt= ion somewhere can add or remove other ports from the dependency tree, and tho= se in=20 their turn may have their own OPTIONS settings, but those OPTIONS are not= =20 processed in that pass. There are patches to correct that behaviour in P= R=20 ports/141641 but until that or something like it is committed, the trick = is to run 'make config-recursive' repeatedly, until you no longer get presen= ted=20 with any of the blue OPTIONS dialogues. Some ports may not give you an OPTIONS dialogue but still have configurat= ion settings you can tweak by setting make(1) variables. In this case, I rec= ommend preserving your settings by adding them to /etc/make.conf. Changing a se= tting like this can affect the dependency tree in exactly the same way as= changing an option, so re-running 'make config-recursive' /yet again/ is a good idea.= I wrote a piece about this earlier in the context of reinstalling all por= ts as part of the process of upgrading 7.2 -> 8.0, which you might like to refe= r to: http://lists.freebsd.org/pipermail/freebsd-questions/2010-January/210449.= html Note: there's a fairly tricky interplay between www/apache22 and devel/ap= r which only affects you if you enable the APR_FROM_PORTS option in the apa= che22 OPTIONS dialogue -- both www/apache22 and devel/apr can be configured to = add=20 dependencies on all sorts of fairly large software groups (Berkeley DB, M= ySQL,=20 LDAP, PostgreSQL ...) and to toggle threading support. Empirically I've = come=20 to the conclusion that if you're compiling against devel/apr, then devel/= apr=20 has to include matching support for all the software groups enabled in th= e=20 apache22 options, or building apache22 will fall over in a twisty mess of= =20 dependencies, all alike. However, you pretty much cannot get the OPTIONS= =20 settings right in one pass of 'make config-recursive' starting from the=20 www/apache22 directory. You can avoid some trouble by *not* enabling the APR_FROM_PORTS option -- which is the default, but loses some flexibi= lity if you're going to be rebuilding Apache or any 3rd party apache modules q= uite a bit. Cheers, Matthew --=20 Dr Matthew J Seaman MA, D.Phil. 7 Priory Courtyard Flat 3 PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate Kent, CT11 9PW --------------enig07DD2AE5B571021D0FA37357 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.14 (FreeBSD) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEAREIAAYFAktNjdgACgkQ8Mjk52CukIwz1gCdEYIfxby/pQ+MPUq/UdCNPmvi Q70AoImfIaBzPCxVW1sZFj/loXddlrep =kkog -----END PGP SIGNATURE----- --------------enig07DD2AE5B571021D0FA37357--