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

While compiling PHP in the server the following error was showing up.

checking for png_write_image in -lpng… yes
configure: error: libXpm.(a|so) not found.

Fix

yum install libXpm-devel

Leave a comment