Skip to content

Instantly share code, notes, and snippets.

@genoma
Last active August 29, 2015 13:57
Show Gist options
  • Save genoma/9830028 to your computer and use it in GitHub Desktop.
Save genoma/9830028 to your computer and use it in GitHub Desktop.
Compile Vim official source with MacPort python on Mac OSX correctly (vim/src/auto/configure)
# LINE 5781 change with
# then proceed as usual after a make distclean
vi_cv_path_python_plibs="-F/opt/local/Library/Frameworks -framework Python"
@genoma
Copy link
Author

genoma commented Mar 28, 2014

If you compile Vim from source with MacPorts or Homebrew installed Python on OSX Mavericks, Vim is not compiled against the ported Python but is compiled with the default one. To fix that you just need to change the line 5781 of the configure file in your vim source folder src/auto/configure then proceed with a make distclean, and configure with --enable-pythoninterp.

This fix works for MacPorts Python configuration, for Homebrew you need to change the path accordingly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment