Date: Tue, 12 Feb 2002 19:14:57 +0100 From: Kjell / LA3SG <kmidtset@c2i.net> To: freebsd-questions@freebsd.org Subject: Recompiling PHP4 with graphics support Message-ID: <20020212181413.CEA407E99@mail.broadpark.no>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020212181413.CEA407E99>
