libXpm.(a|so) not found error when installing PHP on Ubuntu 11.04

view story

http://serverfault.com – I'm trying to compile PHP 5.3.21 on Ubuntu 11.04. I keep getting the following error: configure: error: libXpm.(a|so) not found. I searched for the location for libXpm.a and libXpm.so and both of them are in /usr/lib. So I then update --with-xpm-dir to --with-xpm-dir=/usr/lib in my configure script, but I still get the same error. I've also installed libxpm-dev and a host of other dependent libraries, but still I get the error. Below is the entire configure script: ./configure --enable-fpm --enable-cli --with-fpm-user=phpfpm --with-fpm-group=phpfpm --prefix=/usr/local/php --exec-prefix=/us (HowTos)