vim可以用来编译python吗_Vim编译,在m上支持Python 2.x

当我运行vim时,会出现以下错误:YouCompleteMe unavailable: requires Vim compiled with Python 2.x

support

即使我使用以下命令编译vim:./configure --with-features=huge \

--enable-rubyinterp \

--enable-pythoninterp \

--with-python-config-dir=/usr/lib/python2.7/config \

--enable-perlinterp \

--enable-gui=gtk2 --enable-cscope --prefix=/usr

根据these instructions。看起来编译后的vim被放在/usr/bin/vim中,但我也尝试了/opt/local/bin/vim和/usr/bin/vi中的vim二进制文件,但得到了相同的错误。还有哪些选项可以使vim使用Python2.x支持进行编译?

编辑

以下是./configure的相关输出:checking --enable-pythoninterp argument... yes

checking for python2... (cached) /usr/bin/python

checking Python version... (cached) 2.7

checking Python is 2.3 or better... yep

checking Python's install prefix... (cached) /System/Library/Frameworks/Python.framework/Versions/2.7

checking Python's execution prefix... (cached) /System/Library/Frameworks/Python.framework/Versions/2.7

(cached) checking Python's configuration directory... (cached) /usr/lib/python2.7/config

(cached) checking if -pthread should be used... no

checking if compile and link flags for Python are sane... no: PYTHON DISABLED

ls /usr/lib/python2.7/config/给出:Makefile Setup.local install-sh makesetup

Setup config.c libpython2.7.a python.o

Setup.config config.c.in libpython2.7.dylib

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值