我已经通过自制程序安装了python3: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
我在一些地方搜索了一下,找到了this,所以我尝试为python3.2创建符号链接,然后运行如下配置:./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
我的日志也显示了同样的错误。要使用Python3支持编译vim需要做什么?
不:我不想用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
更新:我已经让它通过自制的Python2.7.1在lathis post上运行,但是仍然没有Python3的乐趣。。。