From: "Morten Winther" <none@mw--get2net.dk.lh.bsd-dk.dk> To: <none@bsd-dk--bsd-dk.dk.lh.bsd-dk.dk> Subject: PHP med GD2 via freebsd ports Date: Thu, 14 Feb 2002 11:50:58 +0100
Hej
Jeg ville gerne bruge gd2 via php, da den jo har truecolor support, men den
driller:
Først har jeg lagt gd2 ind på følgende måde for at undgå X11:
make WITHOUT_XPM=yes WITHOUT_X11=yes install
Den skulle også være ok:
scharlingsvej# pkg_info
gd-2.0.1_1 A graphics library for fast creation of images
I php har jeg ændret i configure.php (install scriptet)
case $1 in
\"GD\")
echo "LIB_DEPENDS+=
gd.2:\${PORTSDIR}/graphics/gd2"
echo "LIB_DEPENDS+=
freetype.8:\${PORTSDIR}/print/freetype2"
echo "LIB_DEPENDS+=
png.5:\${PORTSDIR}/graphics/png"
echo "LIB_DEPENDS+=
jpeg.9:\${PORTSDIR}/graphics/jpeg"
echo "CONFIGURE_ARGS+=--with-gd=\${LOCALBASE} \\"
echo " --with-freetype-dir=\${LOCALBASE}
\\"
echo " --with-jpeg-dir=\${LOCALBASE} \\"
echo " --with-png-dir=\${LOCALBASE}"
Jeg har ændret:
echo "LIB_DEPENDS+= gd.2:\${PORTSDIR}/graphics/gd til:
echo "LIB_DEPENDS+= gd.2:\${PORTSDIR}/graphics/gd2
Men den vil ikke rigtig, da den kommer med denne fejl:
===> Extracting for mod_php4-4.1.1
>> Checksum OK for php-4.1.1.tar.gz.
===> mod_php4-4.1.1 depends on file: /usr/local/sbin/apxs - found
===> mod_php4-4.1.1 depends on file: /usr/local/lib/libcurl.a - found
===> mod_php4-4.1.1 depends on executable: autoconf213 - found
===> mod_php4-4.1.1 depends on shared library: gd.2 - not found
===> Verifying install for gd.2 in /usr/ports/graphics/gd2
===> Returning to build of mod_php4-4.1.1
Error: shared library "gd.2" does not exist
*** Error code 1
Stop in /usr/ports/www/mod_php4.
*** Error code 1
Stop in /usr/ports/www/mod_php4.
*** Error code 1
Stop in /usr/ports/www/mod_php4.
*** Error code 1
Stop in /usr/ports/www/mod_php4.
*** Error code 1
Stop in /usr/ports/www/mod_php4.
*** Error code 1
Stop in /usr/ports/www/mod_php4.
*** Error code 1
Stop in /usr/ports/www/mod_php4.
Jeg går ud fra at det gd.2 ikke passer, men hvad hedder library'et så i
gd-2.0.1_1 ?
/ morten
This archive was generated by hypermail 2b30 : Wed 15 Nov 2006 - 18:24:18 CET