Saturday, May 21, 2011

configure: error: libpng.(a|so) not found (Errors & Solutions #13)

Error


I get this error

configure: error: libpng.(a|so) not found

While running php 5 configure command, Although i had the lib (and -dev packages) installed and i can locate libpng.(a|so) and also specified the directory in ./configure command


Solution

i had to download the lib and compile it manually in /usr/local/lib to overcome this error

Steps:

1- Download: http://prdownloads.sourceforge.net/libpng/libpng-1.2.8.tar.gz?download
2- tar -zxvf libpng-1.2.8.tar.gz
3- cd libpng-1.2.8
4- cp scripts/makefile.linux makefile
5- make
6- make install


No comments:

Post a Comment