Re: freebsd-5.2.1+ php-4.3.9 + gd-2.0.33

From: lark (lark1341-widgetaccount_at_yahoo.com)
Date: 05/31/05


Date: Tue, 31 May 2005 16:26:15 GMT

Encapsulin wrote:
> Hello there,
> I am tryin to compile PHP with GD support under FreeBSD-5.2.1:
>
> # 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 to install php
> + gd + libjpeg + libpng ?
>

doesn't look like you have compiled your png and zlib and jpeg code! i
think you need to compile those babies first and then provide the path
of the compiled code to php for compilation.

i think you can read a lot of php related stuff and how to compile
different sources into it at their site php.net

hope this helps.