我已经下载了vim7.4的源代码,并决定将vim升级到7.4.但是,我无法添加python支持:
./configure  --enable-pythoninterp  --enable-rubyinterp --enable-gui=no --without-x --enable-cscope --enable-multibyte --prefix=/usr
在检查src/auto/config.log时,我发现:
configure:5592: checking Python's configuration directory
configure:5614: result:·
configure:5620: result: can't find it!
已安装的python信息:
dpkg-query -l python
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name                             Version                          Description
+++-================================-================================-   ================================================================================
ii  python                           2.7.3-0ubuntu2.2                 interactive high-level object-oriented language (default version)
在src目录中调用make之后:
./vim --version | grep python
+cryptv          +linebreak       -python          +viminfo
+cscope          +lispindent      -python3         +vreplace
它似乎是由vim无法找到python的配置目录引起的.怎么解决?
感谢您提前获得的见解.
per*_*eal 14
确保安装了python开发包(我认为是python-devel或python-dev).您可以通过传递to来指定python config目录./configure,例如:
--with-python-config-dir=/usr/lib64/python2.7/config
要查找config目录(您可能需要先执行updatedb):
locate python | grep '/config$'
num*_*er5 10
从您没有python-dev安装的错误消息
sudo apt-get install python-dev
这应该可以解决你的问题