|
Posted by ljb on 11/11/03 11:17
encapsulin@gmail.com wrote:
> 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 ?
If you say --with-png-dir=X, then PHP configure will look for
"X/lib/libpng.a" or "X/lib/libpng.so" (or whatever replaces .so on
your platform). Note the "/lib/" that gets inserted after your path.
Configure expects a certain directory structure where lib/ and include/
directories can be found under a common root ("X") directory. With
your setup, that won't work. You probably should actually install the
libraries (zlib, libpng, jpeg).
Navigation:
[Reply to this message]
|