Installing PHP on 64-bit systems
I was trying to install PHP 5.2.5 using Litespeed’s handy admin interface (saves ssh’ing into the server), but kept being met with the following error when it was trying to compile;
configure: error: libpng.(a|so) not found.
Turns out it’s related to my system being 64-bit (I’m using CentOS 5 on Slicehost) and where libpng is installed and so on. Found the answer in this PHP bug report where we specifically tell configure where to look;
./configure --with-libdir=lib64 …
Sorted!
Tags: php
April 29th, 2008 at 2:59 pm
hah!
Wish I’d found this post last night! I installed PHP through Litespeed and got snagged on this point. Same solution, though all mine was done through the webmin!