Posted by ljb on 06/02/05 04:17
encapsulin@gmail.com wrote:
> Well, i have read
> http://www.onlamp.com/pub/a/php/2003/03/27/php_gd.html
>
> And now i have GD (png,gif) with my php engine, but jpeg still not
> supported:
>
> 1)compiling jpeg lib:
> # cd /usr/local/src/jpeg-6b
> # ./configure --prefix=/usr && make && make install
>
> 2) compiling php:
> # cd /usr/local/src/php-4.3.9
> # ./configure --with-gd --with-zlib-dir=/usr/include
> --with-apxs=/usr/local/apache/bin/apxs --with-
> mysql --with-jpeg-dir=../jpeg-6b
> # make clean && make && make install
>
> /usr/local/src/php-4.3.9/ext/gd/libgd/gd_jpeg.c:42:21: jpeglib.h: No
> such file or directory
You have to point your PHP configure to where the jpeg library got
installed, not where it was built (so it can find headers and such).
Try: --with-jpeg-dir=/usr
[Back to original message]
|