Last active
August 4, 2021 19:45
-
-
Save leolord/bb51bdee3f199c2a6cfe2d57a42a2c26 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
No lua, no python. Ubuntu 18.04.4