我已经下载了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的配置目录所致。如何解决?
提前感谢您的见解。
python-dev
。 - KunMing Xie