From owner-freebsd-questions Tue Feb 12 10:19:22 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mail.broadpark.no (217-13-4-9.dd.nextgentel.com [217.13.4.9]) by hub.freebsd.org (Postfix) with ESMTP id 6721037B41A for ; Tue, 12 Feb 2002 10:19:16 -0800 (PST) Received: from there (217-13-29-172.dd.nextgentel.com [217.13.29.172]) by mail.broadpark.no (Postfix) with SMTP id CEA407E99 for ; Tue, 12 Feb 2002 19:14:13 +0100 (MET) Content-Type: text/plain; charset="iso-8859-1" From: Kjell / LA3SG Reply-To: kmidtset@c2i.net To: freebsd-questions@freebsd.org Subject: Recompiling PHP4 with graphics support Date: Tue, 12 Feb 2002 19:14:57 +0100 X-Mailer: KMail [version 1.3] MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Message-Id: <20020212181413.CEA407E99@mail.broadpark.no> Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG List members! By default PHP4 under rel. 4.5 installs with gd-1.8. I need to install PHP4 with the gd-2.0.1 library in order to generate graphics 'on the fly'. I have tried two approaches to achieve this: === approach 1 ===== First I installed the gd2 package from the ports collection using /stand/sysinstall Second I went to /usr/ports/www/mod_php4/scripts and changed graphics/gd to graphics/gd2 in the line echo "LIB_DEPENDS+= gd.2:\${PORTSDIR}/graphics/gd" in the configure.php file Then I went to /usr/ports/www/mod_php4 and gave the commands: apachectl stop make deinstall make clean make The following is part of the output: ===> gd-2.0.1_1 depends on shared library: Xpm.4 - found bzip2 -d < /usr/ports/distfiles//gd_gif_in.c.bz2 > /usr/ports/graphics/gd2/work/gd-2.0.1/gd_gif_in.c ===> Patching for gd-2.0.1_1 ===> Applying FreeBSD patches for gd-2.0.1_1 ===> Configuring for gd-2.0.1_1 ===> Building for gd-2.0.1_1 ........ several cc lines removed....... cc -O -pipe -I/usr/ports/graphics/gd2/work/gd-2.0.1 - I/usr/local/include/freetype2/ -I/usr/local/include/freetype2/freetype - I/usr/local/include -DHAVE_LIBPNG -DHAVE_LIBJPEG - DHAVE_LIBFREETYPE -I/usr/X11R6/include/X11 -I/usr/X11R6/include - DHAVE_XPM -c gdxpm.c -o gdxpm.o In file included from gdxpm.c:23: /usr/X11R6/include/X11/xpm.h:76: X11/Xlib.h: No such file or directory /usr/X11R6/include/X11/xpm.h:77: X11/Xutil.h: No such file or directory In file included from gdxpm.c:23: /usr/X11R6/include/X11/xpm.h:153: syntax error before `*' ...followed by several more lines asking for xpm.h ...where did I go wrong? ==== approach 2 ===== I expanded gd-2.0.1.tar.gz in /home/test When I issued a make libgd.a command I received the following error: gdft.c:42: freetype/freetype.h: No such file or directory gdft.c:43: freetype/ftglyph.h: No such file or directory I then loaded freetype from the ports. (freetype2 was already installed) When I issued the make libgd.a command I received the following error: gdft.c:43: freetype/ftglyph.h: No such file or directory Any thoughts on what is wrong? My next intended step was to compile mod_php4 with --with-gd=/home/test/gd-2.0.1 =================== Any help on the above, or advice on an easier method would be appreciated. Kjell / LA3SG To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message