how to compile PHP with GD support?



Hello there,
I am tryin to compile PHP with GD support:

# cd php-4.3.11
# ./configure \
--with-gd=/usr/local/src/gd-2.0.33/ \
--with-png-dir=/usr/local/src/libpng-1.2.8/ \
--with-zlib-dir=/usr/local/src/zlib/ \
--with-jpeg-dir=/usr/local/src/jpeg-6b/

....
checking for GD support... yes
checking for the location of libpng... /usr/local/src/libpng-1.2.8/
If configure fails try --with-jpeg-dir=<DIR>
configure: error: libpng.(a|so) not found.

why libpng.(a|so) not found ?

# ls -l /usr/local/src/libpng-1.2.8/libpng.a
-rw-r--r-- 1 root wheel 160448 May 31 12:48
/usr/local/src/libpng-1.2.8/libpng.a

What is my mistake? Where to read about correct way for installing php
+ gd + libjpeg + libpng ?

.



Relevant Pages

  • Compiling PHP
    ... I am trying to compile PHP 5.2 on a Solaris 9 system. ... checking for FreeType 1.x support... ... checking whether to enable truetype string function in GD... ... out after the "checking for floorf... ...
    (php.general)
  • Compiling PHP on solaris
    ... I am trying to compile PHP 5.2 on a Solaris 9 system. ... checking for FreeType 1.x support... ... checking whether to enable truetype string function in GD... ... out after the "checking for floorf... ...
    (comp.lang.php)
  • Re: Compiling PHP
    ... I am trying to compile PHP 5.2 on a Solaris 9 system. ... think anyof them include Oracle. ... checking for FreeType 1.x support... ... out after the "checking for floorf... ...
    (php.general)
  • freebsd-5.2.1+ php-4.3.9 + gd-2.0.33
    ... I am tryin to compile PHP with GD support under FreeBSD-5.2.1: ... Where to read about correct way to install php ...
    (comp.unix.bsd.freebsd.misc)