Might seem a silly question, but do you have gd-2.0.1 installed in 

Which version does phpinfo() say you're running?

What does the file link to? Type "ldd" in your 
apache/libexec folder. Perhaps you need to put the path to libgd in 

I can confirm that RH7 with GD-1.8 RPM and custom built PHP+GD-2.0.1 does 
work. I normally install libgd in /usr/local and have /usr/local/lib as the 
first entry in /etc/ (From memory, I think I did this to get 
libgd working with PHP)


Ville Mattila wrote:

> Hello everyone,
> I should get GD 2.0.1 installed to my PHP 4.2.2 binary running as a module
> in the Apache 1.3. The box is RedHat 7.3. There is a previous version of
> GD (1.8.4) installed as a default and it seems that I can't even get
> ereased it due to depencies. Anyway, I'd need that GD 2.0.1 due to some
> functions previous versions of GD don't have at all.
> I explored the PHP manual and found this little help:
> Wonderful, or not! I followed those
> items in the Rasmus' file step by step, but still without results. I tried
> to build PHP with make clean (that was only way when the configure changes
> really affected to the configure command on phpinfo() -function) and then
> all steps. But no... My PHP script is still shouting "Warning:
> imagecreatetruecolor(): requires GD 2.0 or later". Grr...
> My current PHP build is configured with following string:
> './configure' '--with-mysql' '--with-apxs=/etc/httpd/bin/apxs'
> '--with-curl' '--with-gd=/usr/local/gd-2.0.1' '--with-xml' '--enable-ftp'
> '--enable-sockets' '--with-freetype-dir=/usr' '--enable-gd-native-ttf'
> '--enable-gd-imgstrttf' '--with-zlib' '--with-jpeg-dir=/usr'
> '--with-png-dir=/usr'
> Well. Any ideas?
> Ville

PHP General Mailing List (
To unsubscribe, visit:

Reply via email to