我已经通过Homebrew安装了Python 3: brew install python3 --framework
我已经在/usr/src
目录下载了Vim源代码(版本7.3)
我运行以下命令:
./configure --prefix=/usr/local --enable-rubyinterp --enable-python3interp --disable-gpm --enable-gui=no --enable-multibyte
在我的 src/auto/config.log
文件中,我看到:
configure:5442: checking --enable-python3interp argument
configure:5451: result: yes
configure:5456: checking for python3
configure:5489: result: no
我在谷歌上搜索了一些内容,并发现了 这篇文章,于是我尝试创建 python3.2 的符号链接,然后像这样运行 configure:
./configure --prefix=/usr/local --enable-rubyinterp --enable-python3interp --disable-gpm --enable-gui=no --enable-multibyte --with-python3-config-dir=/usr/local/Cellar/python3/3.2/Frameworks/Python.framework/Versions/3.2/lib/python3.2/config-3.2m
我的日志显示了同样的错误。我需要做什么才能使vim编译支持Python3?
并且,不:我不想使用MacVim。
➜ ls -al /System/Library/Frameworks/Python.framework/Versions
total 16
drwxr-xr-x 7 root wheel 238 May 28 15:33 .
drwxr-xr-x 7 root wheel 238 Sep 21 2010 ..
drwxr-xr-x 8 root wheel 272 Sep 17 2010 2.3
drwxr-xr-x 12 root wheel 408 Dec 1 12:49 2.5
drwxr-xr-x 12 root wheel 408 Dec 1 12:49 2.6
lrwxr-xr-x 1 root wheel 70 May 28 15:33 Current -> /usr/local/Cellar/python3/3.2/Frameworks/Python.framework/Versions/3.2
lrwxr-xr-x 1 root wheel 3 Sep 17 2010 old-Current -> 2.6
➜ which python3.2
/usr/local/bin/python3.2
更新:我已经按照这篇帖子的方式,使用Homebrew安装了Python 2.7.1,并且已经让它工作了,但是对于Python 3仍然没有成功。