I can't believe I have to ask, but I've already blown close to a day trying to get this to work. The bottom line is it appears I don't have gd configured because when I run a script that uses a library which references gd, I get the infamous "Call to undefined function: imagecreate()", which has been reported by quite a few people already all over the web, almost everyone claiming I can't possibly have GD configued.

Let me quickly saw I'm running RedHat 9.0, Apache 2.0.49 and have using the 4.3.5 kit. Let me also say my starting point was the GD website, specifically the page at http://www.boutell.com/gd/phppatch.html, which states:

"Do you have PHP 4.3 or better? Then you DON'T want this page. Just build PHP with gd enabled (--enable-gd) to get the built-in gd distribution in any newer version of PHP"

Taking the author's word for it, I did a ./configure --with-apxs2=/usr/local/bin/apxs --with-mysql --enable-gd
and added the appropriate directives to the httpd.conf file, the LoadModule one was actually put there by PHP:


LoadModule php4_module libexec/libphp4.so
AddType application/x-httpd-php .php .phtml
AddType application/x-httpd-php-source .phps

that said, I was able to load simply pages, including one that executes phpinfo(). alas, there's no mention of GD, other than in the entry that shows the configure command like. I also found after a lot of looking around that I could execute php -m to let a list of my loaded modules. no mention of gd. so what gives?

do I have to install gd? I did try and found I needed png and jpg rpms and would rather not go down that rabbit hole if I can avoid it because I just know there are other kinds of version conflicts awaiting me at the end of that trail. besides, the author of GD sounded pretty confident this would work and so am hoping there is some simply configuration option I've missed instead.

sorry for being so long winded...

-mark

Reply via email to