Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I got an error while compiling PHP, I am listing the details below.

Error configure error libxpm.(a so) not found

I have checked with dpkg -L libxpm-dev. it is showing the needed file is in the folder /usr/lib/x86_64-linux-gnu/(libXpm.a).

I have tried with --with-xpm-dir=/usr/lib/x86_64-linux-gnu, but error still exists.

share|improve this question

I got past this by doing

sudo ln -s /usr/lib/x86_64-linux-gnu/libXpm.a /usr/lib/libXpm.a

You can also set the lib dir by adding


to the configure line but that missed some of the ones in /usr/lib.

share|improve this answer
Hello Jacek, Thank you, I have tried with both options, none of them works for me :(. Also I got another error("checking for db4 major version... configure: error: Header contains different version") while I am trying to include "--with-db4" – Dipu R Mar 18 '13 at 11:11

Hello I solved couple of problems via this link I hope it would help you.

share|improve this answer
Welcome to Ask Ubuntu! Whilst this may theoretically answer the question, it would be preferable to include the essential parts of the answer here, and provide the link for reference. – Kevin Bowen Apr 12 '13 at 9:11
Thank you Feyyaz, I will try it and update you :) – Dipu R Apr 16 '13 at 7:43

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.