yikes - I just reread what I wrote and the second sentence had magically changed to 'with-gd' so I guess my eyes were all hazed over from reading though a bazillion messages on the topic. sorry about that. I'll see if I can get that to work...
-mark


Mark Seger wrote:

but even on the page you're pointing me to - http://php.net/image - it says to use the --enable-gd switch in the second sentence of the following extract from that page:

" To enable GD-support configure PHP --with-gd[=DIR], where DIR is the GD base install directory. To use the recommended bundled version of the GD library (which was first bundled in PHP 4.3.0), use the configure option --with-gd. In Windows, you'll include the GD2 DLL php_gd2.dll as an extension in php.ini. The GD1 DLL php_gd.dll was removed in PHP 4.3.2. Also note that the preferred truecolor image functions, such as *imagecreatetruecolor()* <http://us4.php.net/manual/en/function.imagecreatetruecolor.php>, require GD2."

maybe I'm just too new to all this but I didn't see any clear directions anywhere on that page. there were references to png and jpg libraries, but no versions or build switches and I think that's where all the problems lie. also, since I already have both png and jpg on my machine as from earliers builds of apache that might be compounding the problems too.

are you really sure I'm not supposed to use --enable-gd? it says that on both the php site you pointed me to as well as the official 'gd' site. can they both be wrong?

-mark

[EMAIL PROTECTED] wrote:



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:


Hi mark.  I'm pretty sure the correct flag is --with-gd not --enable-gd.
Also, i'd suggest building the jpg libraries as well,. you'l want them
eventually.  I'm surprised thats on the gdsite...thats too bad.

Take a look at http://php.net/image, that will give a clear explanation of
what you need/may want, so you only have to (re)build it once.


hth
Jeff


Reply via email to