note 32564 added to ref.image
| From: | dehumanizer at optusnet dot com dot au | Date: | Sat, 31 May 2003 11:18:26 +0000 |
| Subject: | note 32564 added to ref.image | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-49482@lists.php.net to get a copy of this message | ||
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.
----
Manual Page -- http://www.php.net/manual/en/ref.image.php
Edit Note -- http://master.php.net/manage/user-notes.php?action=edit+32564
Delete Note -- http://master.php.net/manage/user-notes.php?action=delete+32564&report=yes
Reject Note -- http://master.php.net/manage/user-notes.php?action=reject+32564&report=yes