I ran into the same problem trying to setup php-4.3.7. It seems to be that the flags that the makefile has aren't right when the configure is built. I'm not sure why yet, but needless to say, I added a *perhap's hacked* line to the Makefile to get it to work.
Original Makefile read: ----------------------------------- GDLIB_CFLAGS = -I/!PHPDIR!/ext/gd/libgd -DHAVE_LIBPNG -DHAVE_LIBJPEG ----------------------------------- My Makefile read: ----------------------------------- GDLIB_CFLAGS = -I/!PHPDIR!/ext/gd/libgd -DHAVE_LIBPNG -DHAVE_LIBJPEG -I/!JPGSRCDIR!/jpeg-6b ----------------------------------- Where !PHPDIR! was the location of my php SOURCE code and !JPGSRCDIR! was the location of my jpeg-6b src code. Hope this helps! -Justin Gehring JR Corps http://www.rinsefirst.com/ New.Php.Net wrote: > Hi everyone, > I'm trying to compile PHP 4.3.6 and also jpeg-libraries to GD. I've > compiled and installed jpeg-6b successfully, but now when I try to make > the PHP, I will get an error: > /root/php-4.3.6/ext/gd/libgd/gd_jpeg.c:42:21: jpeglib.h: No such file or > directory > /root/php-4.3.6/ext/gd/libgd/gd_jpeg.c:43:20: jerror.h: No such file or > directory > I've provided the exactly correct path for configure as --with-jpeg-dir > and checked that jpeg.lib and jerror.h are really situated in the given > path. > Do you have any idea what could help in this situation? > Thanks, > Ville