Sylvie (& co.),
When I used the equivalent method, it also worked for me, but then I had to set LD_LIBRARY_PATH in order for Apache to run (not an option for us).
In my case it turned out that PHP was really struggling the gd, and libpng was only a symptom. I tried setting the directories explicitly for the library files of libpng & friends, but then failed to compile. Returning to php403p1's INSTALL, I interpreted that the --with-gd=[DIR] was expecting the directory above the library so it could also find the includes, thus /usr/local not /usr/local/lib.
Regards,
Kim
Here is my successful configure statement:
./configure --with-mysql=/usr/local/etc/mysql \
--with-xml \
--with-apache=../apache_1.3.12 \
--enable-track-vars \
--with-zlib-dir=/usr/local/lib \
--with-png-dir=/usr/local/lib \
--with-gd=/usr/local \
--with-xpm-dir=/usr/local/lib
Sylvie wrote:
I finally got things workink on my Solaris. Here is what worked:
env CPPFLAGGS=-I/usr/local/include LDFLAGS=-L/usr/local/lib LD_LIBRARY_PATH=/usr/local/lib ./configure --with......