Click to See Complete Forum and Search --> : Installing PHP with GD, JPEG and Freetype support


Anon
09-20-2000, 12:03 PM
I am trying to install PHP4 as a static module for Apache.
I think I have installed all the necessary libraries to install PHP4 with JPEG and Freetype support. However, when configuring PHP4 something goes wrong.

It seems that 'gdImageCreateFromJpeg' can not be found in the GD library. Why is this ? I have used version 1.8.3 which supports JPEG.

------------------------------------

Relevant output from 'configure':

checking whether to include GD support... yes (static)
checking for gdImageString16 in -lgd... (cached) yes
checking for compress in -lz... (cached) yes
checking for png_info_init in -lpng... (cached) yes
checking for libjpeg (needed by gd-1.8+)... yes
checking for jpeg_read_header in -ljpeg... (cached) yes
checking for gdImageCreateFromJpeg in -lgd... (cached) no
checking for libXpm (needed by gd-1.8+)... yes
checking whether to include ttf support... yes

------------------------------------

The configure command:
./configure '--with-apache=../apache' '--with-mysql' '--with-gd=/usr/local/gd' '--with-gettext' '--with-xml' '--with-ftp' '--with-ttf' '--with-jpeg-dir' '--with-zlib' '--with-xpm-dir=/usr/X11R6/lib' --enable-track-vars'

Anon
11-02-2001, 09:05 AM
Hi

Try doing a "make distclean" first, this will remove the config.cache file from the build directory as it's looking up old data.

Then do your configure and then make.

Look at the output from configure and you'll probably see that gdImageCreateFromJPEG is now yes.

I get this a lot as I have to recompile PHP periodically.

I've got a problem at the moment that I can get JPEG support and FreeType appears to have been compiled properly but causes a segmentation fault.

Hope this helps.
James