note 32564 deleted from ref.image by betz
| From: | betz@php.net | Date: | Sat, 04 Jun 2005 11:18:05 +0000 |
| Subject: | note 32564 deleted from ref.image by betz | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-89903@lists.php.net to get a copy of this message | ||
Note Submitter: dehumanizer at optusnet dot com dot au
----
If you are trying to install jpeg support with php, then first install jpeg-6b and libpng. And when
starting to install gd, check out the Makefile. I tried to install gd-1.8.4 and found that the
Makefile didnt include the jpeglibs, rather all were commented. Uncomment the lines where
you'll find the JPEG libs are mentioned. Like the lines below:
CFLAGS=-0 -DHAVE_LIBPNG -DHAVE_LIBJPEG
CFLAGS=-0 -DHAVE_LIBXPM -DHAVE_LIBPNG -DHAVE_LIBJPEG
There are several lines like that those you have to uncomment. Now install gd.
Before installing php, check if there is any config.cache file existing. If it does, delete it. The
php ./configure sysntax should have --with-jpeg-dir --with-png-dir --with-gd=/path/to/gd
After configure is done, check out the config.cache file. If jpeg and png supports are installed
successfully, you should be able to find these lines:
ac_cv_lib_gd_gdImageCreateFromJpeg=
${ac_cv_lib_gd_gdImageCreateFromJpeg=yes}
ac_cv_lib_gd_gdImageCreateFromPng=
${ac_cv_lib_gd_gdImageCreateFromPng=yes}
now, make and make install.
I put all the installers in one directory. So, this is how my dir-structure looked like
/opt/apache/download/upgrade/apache_1.3.27
/opt/apache/download/upgrade/gd-1.8.4
/opt/apache/download/upgrade/jpeg-6b
/opt/apache/download/upgrade/libpng-1.2.5
/opt/apache/download/upgrade/php-4.2.3
No directory prefix was used while configuring gd/jpeg/libpng/
This worked for me pretty fine. Hope this will help and save time for someone.