Re: installing with GD
| From: | Mark Seger | Date: | Thu, 08 Apr 2004 19:58:05 +0000 |
| Subject: | Re: installing with GD | ||
| References: | 1 | Groups: | php.install |
| Request: | Send a blank email to php-install+get-13206@lists.php.net to get a copy of this message | ||
ok, here we go again... I started out with a clean system so I didn't leave any unsuccessful installations behind.
I installed apache
I installed jpeg
I went to build php with:
./configure --with-apxs2=/usr/local/bin/apxs --with-mysql --with-gd --with-jpeg-dir=/usr/lib
and it died with:
configure: error: libjpeg.(a|so) not found.
if I search my system for libjpeg I find:
/home/mjs/jpeg-6b/libjpeg.doc
/home/mjs/jpeg-6b/libjpeg.a
/usr/lib/libjpeg.so.62
/usr/lib/libjpeg.so.62.0.0
for laughs I tried it one more time pointing the jpeg-dir to /home/mjs/jpeg-6b but that didn't help either. so now what?
-mark
jeffrey_n_Dyke@Keane.com 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