当我运行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