Archive for the ‘Server’ Category

Installing PHP on 64-bit systems

Saturday, April 19th, 2008

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!