Re: [PHP-INSTALL] GD trouble

[email protected] (Hendrik Schmieder)
Newsgroups php.install
Message-ID <[email protected]>
Matt Bullock schrieb:
> I am trying to get gd working, but I cant seem to get php to like
> anything.  Here is my configure line:
> 
> ./configure --prefix=/usr/local/php
> --with-apxs2=/usr/local/apache2/bin/apxs --with-xml --enable-bcmath
> --enable-calendar --with-curl --enable-ftp --with-gd
> --with-jpeg-dir=/root/filez/jpeg-6b --with-png-dir=/usr --with-xpm
> --enable-magic-quotes --with-mysql --enable-discard-path --with-pear
> --enable-sockets --enable-track-vars --enable-versioning --with-zlib
> 
> When I run a "make" I get this error:
> 
> /root/filez/php-4.3.9/ext/gd/libgd/gd_jpeg.c:42:21: jpeglib.h: No such
> file or directory
> /root/filez/php-4.3.9/ext/gd/libgd/gd_jpeg.c:43:20: jerror.h: No such
> file or directory
> ....
> ....
> /root/filez/php-4.3.9/ext/gd/libgd/gd_jpeg.c:450: field `pub' has
> incomplete type
> /root/filez/php-4.3.9/ext/gd/libgd/gd_jpeg.c:455: confused by earlier
> errors, bailing out
> make: *** [ext/gd/libgd/gd_jpeg.lo] Error 1
> 
> [root@volatile xpm-3.4k-linux]# locate jpeglib.h
> /root/filez/jpeg-6b/jpeglib.h
> 
> [root@volatile xpm-3.4k-linux]# locate jerror.h
> /root/filez/jpeg-6b/jerror.h
> 
> Basically, I am trying to get a system running with the following
> support:
> 
> Apache2
> Php (4.3.9 or 5.0.2)
> Mysql
> Gd
> Jpeg 
> Png
> 
> When I configure php without --with-jpeg and --with-png it seems to
> install ok, but it wont resize any images.
> 
> Thanks for any help.
> 
> Matt
> 

There's probably no jpeglib.h in /root/filez/jpeg-6b .

   Hendrik
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.