Hi,

I've installed GD 2.0 on my server instead of GD 1.8.x.

Compilation was successfull.

I've then compiled PHP with my new lib, and 'configure' then 'make' then 'make install' ran successfully.

But PHP is still using my old GD library and I can't use new GD feature such as imagetruecolor or stuff like that.

I'm running a Linux Red Hat 2.4.18 and my configure command is :

./configure --with-apache=../apache_1.3.24 --with-dbase --with-filepro --with-xml --enable-ftp --with-db --enable-bcmath --enable-calendar --with-jpeg-dir=/usr
--with-png-dir=/usr --with-gd=/home/ovh/src/gd-2.0.1 --enable-gd-native-ttf --with-freetype-dir=/usr --enable-gd-imgstrttf --with-gettext --with-pgsql=/usr --with-mysql=/usr --with-zlib --enable-trans
-sid --with-imap --with-kerberos --with-imap-ssl --with-openssl --enable-sysvsem --enable-sysvshm

(I've kept some previous PHP configure flags as reported in phpinfo, and add some others as indicated on the Rasmus page about PHP and GD 2.0 : http://www.php.net/~rasmus/gd.html)

Anyone can help me ?

Thank you

Niko

    The problem seems to be that PHP is still linking to the old version of GD at
    some point during the configure/make stage, even if you explicitly tell it to use a new libgd.a somewhere in your home directory (

    You might want to try completely deleting any existing GD library and header files, and reinstalling GD 2.0.1 into /usr or /usr/local as normal, and then try recompiling PHP.

    Cheers,
    DTV

    Check out WROX' new addition to the PHP shelf: "PROFESSIONAL PHP4 MULTIMEDIA PROGRAMMING" ON AMAZON.COM

    http://www.amazon.com/exec/obidos/ASIN/1861007647/qid%3D1023174099/ref%3Dsr%5F11%5F0%5F1/103-0550984-8004660

      I've been told on another forum another guy had the same problem because of a corrupted file in his GD files.

      Anyway, I'll do what you said and remove all GD stuff before to install it again.

      Thx,

      Nicolas

        Write a Reply...