Compile vim7.4 source code with python support failed

Make sure you have the python development packages installed (python-devel or python-dev I think). You can specify the python config directory by passing, to ./configure, something like:

--with-python-config-dir=/usr/lib64/python2.7/config

To find the config directory (you may need to do updatedb first):

locate python | grep '/config$'

From your error messages you don't have python-dev installed

sudo apt-get install python-dev

this should fix your problem


Make sure you have installed the development packages for python and point towards the appropriate config directory.

ex: ./configure --enable-pythoninterp --with-python-config-dir=/usr/lib/python2.7/config

Tags:

Python

Vim