我正在尝试针对 EPD Canopy 的 python 编译 vim,但 ./configure 似乎找不到正确的配置目录。这是我正在运行的命令
CC=clang ./configure --prefix=/usr/local \
--with-features=huge \
--enable-rubyinterp \
--enable-pythoninterp \
--enable-perlinterp \
--enable-cscope
这是输出的相关部分
checking --enable-pythoninterp argument... yes
checking for python... /Users/noah/Library/Enthought/Canopy_64bit/User/bin/python
checking Python version... 2.7
checking Python is 1.4 or better... yep
checking Python's install prefix... /Users/noah/Library/Enthought/Canopy_64bit/User
checking Python's execution prefix... /Users/noah/Library/Enthought/Canopy_64bit/User
checking Python's configuration directory...
can't find it!
现在, Canopy.app 包中有一个config
目录,所以我也尝试添加 flag --with-python-config-dir=/Applications/Canopy.app/Contents/lib/python2.7/config
。这给出了错误
checking if compile and link flags for Python are sane... no: PYTHON DISABLED
我没有想法。谢谢你的帮助。