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

When I try to do ./configure over AWN v0.4 I get this error:

configure: error: in `/home/desktop/Software/avant-window-navigator-0.4.0':
configure: error: 
  Could not link test program to Python. Maybe the main Python library has been
  installed in some non-standard library path. If so, pass it to configure,
  via the LDFLAGS environment variable.
  Example: ./configure LDFLAGS="-L/usr/non-standard-path/python/lib"
   You probably have to install the development version of the Python package
   for your distribution.  The exact name of this package varies among them.

So maybe I can solve this adding the path of the python library to the command. But I don't know where is it.

See the full output here

share|improve this question
up vote 5 down vote accepted

This message is not asking for the python libraries themselves, it's asking for the headers to link against them. You can install then with:

sudo apt-get install python-dev

You are probably lacking some other dependencies.

share|improve this answer

You should be able to find it in the following locations


share|improve this answer
I have the same output with both locations. It could be a problem originated by another thing. I don't know really – Lucio Mar 14 '13 at 3:45

I found myself in the same situation with VAMOS Automotive Simulator. The Python version was hardcoded in the configure file, so I had to install that version instead, in my case:

apt-get install python3.4-dev
share|improve this answer

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.