Page 1 of 1

GD Library

Posted: Tue May 06, 2003 3:47 am
by abdul
Hi there,

I have an Apache installation on FreeBSD with PHP 4.2.3. I want to enable GD library with it. By default PHP 4.2 should have a GD library with it. But, it was showing a version of 1.6.2. But, what I need is GD 2.x. In my server's (FreeBSD) ports collection I have GD 2.1, I installed it and re-compiled it again by using
./configure' '--with-mysql' '--with-gd=/usr/local' '--with-jpeg' '--with-zlib' '--with-apxs2=/usr/local/www/bin/apxs' .
But, still it is showing version 1.6. So, I downloaded the latest version of GD library, installed it and compiled again. Still the version doesn’t change. Does anybody have any idea on what is happening here? Please note, I have only re-started apache, not the sever itself. I don’t want to do that as many websites are running on the machine. Any help will be appreciated.

Thanks,

-Abdul

Posted: Tue May 06, 2003 4:14 am
by twigletmac
Is it showing version 1.6 or does it say version higher than 1.6? Have you tested any of the GD2 only functions like imagefilledellipse() to see if they work?

Mac

Posted: Tue May 06, 2003 4:28 am
by abdul
Yes, I have tested with imagecreatetruecolor() and it is showing this error
Fatal error: Call to undefined function: imagecreatetruecolor()
This is what I get from phpinfo()
GD Support enabled
GD Version 1.6.2 or higher
GIF Read Support enabled
JPG Support enabled
PNG Support enabled
WBMP Support enabled
Many Thanks,

-Abdul

Posted: Tue May 06, 2003 8:58 am
by abdul
What I have is php 4.3.1

Thanks,