From owner-freebsd-questions@FreeBSD.ORG Tue Oct 5 06:44:12 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 1700616A4CE for ; Tue, 5 Oct 2004 06:44:12 +0000 (GMT) Received: from s1.hfm0.de.carpe.net (s1.hfm0.de.carpe.net [212.96.136.38]) by mx1.FreeBSD.org (Postfix) with ESMTP id 590EB43D41 for ; Tue, 5 Oct 2004 06:44:11 +0000 (GMT) (envelope-from ray@carpe.net) Received: from s1.hfm0.de.carpe.net (s1.hfm0.de.carpe.net [212.96.136.38]) by s1.hfm0.de.carpe.net (8.12.8/8.12.8) with ESMTP id i956iATJ002511 for ; Tue, 5 Oct 2004 08:44:10 +0200 (MET DST) Message-Id: <200410050644.i956iATJ002511@s1.hfm0.de.carpe.net> From: Ray Davis To: freebsd-questions@freebsd.org In-reply-to: Alex de Kruijff's message <20041005044406.GB917@alex.lan> of Tue, 05 Oct 2004 06:44:06 +0200. References: <200410041959.i94JxNTJ003363@s1.hfm0.de.carpe.net> <20041005044406.GB917@alex.lan> Date: Tue, 05 Oct 2004 08:44:10 +0200 Sender: ray@carpe.net Subject: Re: php4 with gd? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 05 Oct 2004 06:44:12 -0000 Thanks to all who replied! Here a compined reply... "Haulmark, Chris" wrote... > > I must be totally dense, but after trying a number of things, > > searching the mailing lists, searching google, reading the freebsd > > ports doc, searching the php web - I still can not get php4 to > > build with gdlib support using the ports collection. > > > > We already had a working mod_php4 built and installed, and just > > want to add gdlib support. None of the following (as well as > > other incantations) work in either the www/mod_php4 port nor the > > lang/php4 port: > > > > make deinstall; make reinstall > > make deinstall; make clean; make install > > make deinstall; make WITH_GD=YES reinstall > > make deinstall; make clean; make WITH_GD=YES install > > > > Can someone please give me a clue? I thought I remembered that > > there was a text gui asking what options we want, but it doesn't > > appear anymore. > > Have you looked in the ports collection of lang/php4-extensions? Bingo! This seems to be the correct answer! cd /usr/ports/lang/php4-extensions make WITH_GD=yes WITH_GETTEXT=yes install does the trick! Or one can leave off the WITH_* vars and select them in the text gui. Life would be so much easier if the php4 make and pkg-descr would mention where to look for extentions. How is someone supposed to know this exists (without monitoring all freebsd mailing lists)? Benjamin Walkenhorst wrote... > Look at the Makefile and the CONFIGURE_ARGS variable. I don't know the > option for php, but something like "--enable-gd" might help. Didn't know you could set configure args at the top level make. Good to know! Alex de Kruijff wrote... > > > There seems to be a big gap between simply installing a port with > > > its defaults and finding out what other options might be available > > > via the WITH_* and WITHOUT_* options. Isn't this documented with > > > each port somewhere? > > There are used in the Makefile, so you can allways look there. This is part of what was confusing me. There were lots of mailing list references to using WITH_GD, but I couldn't find it in the Makefile. Sometimes these are hiding in an included makefile somewhere outside of the port itself. But now I know it was moved to lang/php4-extentions sometime since we originally built php4! > > Can someone please give me a clue? I thought I remembered that > > there was a text gui asking what options we want, but it doesn't > > appear anymore. > > You can set this not to appear by setting BATCH in /etc/make.conf. If > you rename /etc/make.conf for builing mod_php, then you'll have you're > text ui. (g stands for graphical) The string batch isn't in our make.conf. The gui was hiding in the lang/php4-extentions port. Yes g stands for graphical, which is why it is a "text gui". The curses based line drawing and shading is a "text" based form of graphics. Graphics does not imply bitmapped. Draw a box with a pencil and you have graphics. :) Cheers, Ray