title: compiling vim with python support on Ubuntu
body: <p>I am trying to compile vim from source with python interpreter on Ubuntu. I have installed the dependencies for vim, installed python2.7-devel and python2.7-dbg packages on Ubuntu and do the configure step like this</p>
  
  <pre><code>./configure --enable-pythoninterp --with-python-config-dir=/usr/lib/python2.7/config
  </code></pre>
  
  <p>The config directory does contain the config.c file. The make step fails with the following error.</p>
  
  <pre><code>...
  
  objects/py_config.o:(.data+0xcc): undefined reference to `initcStringIO'
  objects/py_config.o:(.data+0xd4): undefined reference to `initcPickle'
  objects/py_config.o:(.data+0xdc): undefined reference to `initzlib'
  collect2: ld returned 1 exit status
  make: *** [vim] Error 1
  </code></pre>
  
  <p>I have tried stable builds, tweaked around configure etc. But do not find a definitive answer. Also vim builds without the python-interpreter.</p>
  
  <p>Here the complete </p>
  
  <p>output - <a href="http://paste.pocoo.org/show/577749/" rel="noreferrer">http://paste.pocoo.org/show/577749/</a></p>
  
  <p>error - <a href="http://paste.pocoo.org/show/577752/" rel="noreferrer">http://paste.pocoo.org/show/577752/</a></p>
  
  <p>Makefile - <a href="http://paste.pocoo.org/show/577751/" rel="noreferrer">http://paste.pocoo.org/show/577751/</a></p>