PHP 5.3.x and Ubuntu 11.04
I was trying to build PHP 5.3.4 through the admin panel while I got the following error:
(ADDED: So obviously I had the libraries and they just didn't work)
checking for the location of libjpeg... no
checking for the location of libpng... no
checking for the location of libXpm... no
checking for FreeType 2... no
checking for T1lib support... no
checking whether to enable truetype string function in GD... no
checking whether to enable JIS-mapped Japanese font support in GD... no
checking for fabsf... yes
checking for floorf... yes
If configure fails try --with-jpeg-dir=<DIR>
configure: error: libpng.(a|so) not found.
**ERROR** Could not configure PHP build
My solution to the problem was to create symlinks for both libjpeg.so and libpng.so to the /usr/lib directory.
In summary, here are the 2 simlinks that were required when building PHP on Ubuntu 11.04 64bit:
ln -s /usr/lib/x86_64-linux-gnu/libjpeg.so /usr/lib/libjpeg.so
ln -s /usr/lib/x86_64-linux-gnu/libpng.so /usr/lib/libpng.so
Last edited by tininho; 05-26-2011 at 09:06 PM..