I'm trying to make php 4.3.6 ( OS: Debian testing ):
./configure --with-gd
gives me following error:
If configure fails try --with-jpeg-dir=<DIR>
configure: error: libpng.(a|so) not found.
I tried --with-png-dir=/path/to/libpng12.so.0.1.2.7 but I still get the same error.
This appears to be a common problem and I've read a few solutions on the net, including this article at ONLamp but still can't get it to work.
The ONLamp article mentions using --with-zlib-dir, which I tried pointing to libz.so.1.2.1.1 and it says:
checking for ZLIB support... no
checking if the location of ZLIB install directory is defined... /usr/lib
configure: error: Cannot find libz
I have .so files for libz, libpng and libjpeg already in /usr/lib -- they got there as deb packages (ie not installed from source ) This kind of stuff is outside my ( limited ) range of expertise. What dangers do I risk if I compile zlib and libpng from srcs ( which is what ONLamp article describe )? Why should that make a difference when making php ( is it looking for 'leftovers' from the sources, like *.h files? )?
Words like 'shared' and 'static' libraries scare me, so I'm concerned I'll break my system if I f' something up.
TIA,
-Tom.