1. download libjpeg source code from here
2. manually change your Makefile before compiling PHP, make sure this is added:
-I/path/to/jpegsrc
GDLIB_CFLAGS = -I/usr/opt/distfiles/src/php-5.2.5/ext/gd/libgd -DHAVE_LIBPNG -DHAVE_LIBJPEG -I/opt/distfiles/src/jpeg-6b
3. make;make install or cp libphp5.so to replace your current one in apache
Reference: http://ca.php.net/gd
No comments:
Post a Comment