John K. Jensen wrote:
> Hej
>
> Nogen som har prøvet at compile php med gd?
> (apache 1.3.24 & php 4.1.2)
>
> ./configure --with-mysql --with-apache=../apache_1.3.24/
> --enable-track-vars
> --with-gd=/usr/src/gd-1.8.4/ --with-jpeg-dir=/usr/src/jpeg-6b/
> --with-png-d
> ir=/usr/src/libpng-1.2.1/
Hej,
Hvis du er frisk på at hente en nyere version af GD, ( som du sikkert ikke
vil blive ked af ) virkede dette for mig PHP 4.1.2 og GD 2.0.1
------------------------------
GD-2.0.1 and PHP
0. Make sure you have libjpeg and libpng installed
1. Grab GD-2.0.1.
http://www.boutell.com/gd/http/gd-2.0.1.tar.gz
2. tar zxvf gd-2.0.1.tar.gz
3. cd gd-2.0.1
4. Edit the Makefile and change the LIBS line to be:
LIBS=libgd.a -lpng -lz -ljpeg -lfreetype -lm
5. make libgd.a (don't need to do a make install)
6. Now build PHP using these flags:
--with-gd=/home/<you>/gd-2.0.1
--with-freetype-dir=/usr
--enable-gd-native-ttf (for PHP 4.0.6 leave off trailing 'f')
--enable-gd-imgstrttf
--with-jpeg-dir=/usr
--with-png-dir=/usr
--with-zlib
------------------------
Mvh
Dennis