-
-
Save dhruv/4bbe08d1341a4672582dcac8a05e35ca to your computer and use it in GitHub Desktop.
Compiling vim on Ubuntu 18 with LUA-support
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Remove previous installations | |
sudo apt-get remove vim vim-runtime vim-tiny vim-common | |
# Install dependencies | |
sudo apt-get install libncurses5-dev python-dev liblua5.3-dev lua5.3 python3-dev | |
# Fix liblua paths | |
# You have to compile luajit for yourself. | |
sudo ln -s /usr/include/lua5.3 /usr/include/lua | |
sudo ln -s /usr/lib/x86_64-linux-gnu/liblua5.3.so /usr/local/lib/liblua.so | |
# Clone vim sources | |
cd ~ | |
git clone https://github.com/vim/vim.git | |
cd vim | |
./configure \ | |
--enable-luainterp \ | |
# --enable-pythoninterp \ | |
# --with-python-config-dir=/usr/lib/python2.7/config-x86_64-linux-gnu/ \ | |
--enable-python3interp \ | |
--with-python3-config-dir=/usr/lib/python3.5/config-3.5m-x86_64-linux-gnu/ \ | |
--enable-cscope \ | |
--disable-netbeans \ | |
--enable-terminal \ | |
--disable-xsmp \ | |
--enable-fontset \ | |
--enable-multibyte \ | |
--enable-fail-if-missing \ | |
--with-compiledby=leolord \ | |
--with-modified-by=leolord | |
make VIMRUNTIMEDIR=/usr/share/vim/vim74 | |
sudo apt-get install checkinstall | |
sudo checkinstall |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment