我已经下载了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 的配置目录引起的。如何解决?
提前感谢您的见解。