Turns out the bug is actually in the Python Makefile, believe it or not.
Open the file
/usr/local/Cellar/python/2.7.2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/config
or whatever the appropriate path is for you, and search for PyMac_Error
. It should be on the line defining LINKFORSHARED
, and on this line you need to change PYTHONFRAMEWORKDIR
to PYTHONFRAMEWORKINSTALLDIR
. Then go back to your vim source and ./configure, everything should go smooth.
Also make sure you symlink OS X's Python Frameworks to the ones in the Homebrew Cellar:
/Library/Frameworks/Python.framework/Versions/2.7
/Library/Frameworks/Python.framework/Versions/Current
/System/Library/Frameworks/Python.framework/Versions/2.7
/System/Library/Frameworks/Python.framework/Versions/Current
should all point to
/usr/local/Cellar/python/2.7.2/Frameworks/Python.framework/Versions/2.7
Not really sure why I had it in so many places, or if that's bad, but there it is.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…