Skip to content

Instantly share code, notes, and snippets.

@na0x2c6
Last active March 4, 2022 06:25
Show Gist options
  • Save na0x2c6/038047e6c9b642014a5ce1af09974fd2 to your computer and use it in GitHub Desktop.
Save na0x2c6/038047e6c9b642014a5ce1af09974fd2 to your computer and use it in GitHub Desktop.
build Vim on OS X (Mac)
./configure \
--prefix=$HOME/local \
--enable-multibyte \
--enable-nls \
--enable-perlinterp \
--enable-pythoninterp=dynamic \
--enable-python3interp=dynamic \
--enable-rubyinterp \
--enable-luainterp --with-lua-prefix=/usr/local \
--enable-cscope \
--enable-fail-if-missing=yes \
--with-features=huge \
--without-x \
--disable-xim \
--disable-gui \
--disable-sysmouse \
--disable-netbeans \
--disable-xsmp \
CC=/usr/bin/clang
@na0x2c6
Copy link
Author

na0x2c6 commented Jun 20, 2021

To build with the lua installed with the homebrew for Apple silicon:
--with-lua-prefix=/usr/local -> --with-lua-prefix=/opt/homebrew

@na0x2c6
Copy link
Author

na0x2c6 commented Mar 4, 2022

./configure \
 --prefix=$HOME/local \
 --enable-multibyte \
 --enable-nls \
 --enable-perlinterp \
 --enable-python3interp=dynamic \
 --with-python3-config-dir=$(pyenv prefix)/lib/python3.9/config-3.9-darwin \
 --enable-rubyinterp \
 --enable-luainterp --with-lua-prefix=/opt/homebrew \
 --enable-cscope \
 --enable-fail-if-missing=yes \
 --with-features=huge \
 --without-x \
 --disable-xim \
 --disable-gui \
 --disable-sysmouse \
 --disable-netbeans \
 --disable-xsmp \
CC=/usr/bin/clang

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