-
-
Save lekodeveloperweb/c4e435509c2594283c1d67e1499ad920 to your computer and use it in GitHub Desktop.
Install vim with lua support on ubuntu 16.04
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
I needed to install vim with lua support because I wanted to use neocomplete in my recently installed 15.04 distro. Also, this has python3 enabled by default. | |
Tested on 16.04 now | |
Update: This has been tested and verified to work on Ubuntu 16.04 as well. Also, if you wish to use particular branch/tag, you can get the version and then checkout appropriately. | |
The following (based upon https://gist.github.com/jdewit/9818870) should work though I copied it from history: | |
sudo apt-get remove --purge vim vim-runtime vim-gnome vim-tiny vim-common vim-gui-common | |
sudo rm -rf /usr/local/share/vim /usr/bin/vim /usr/local/bin/vim | |
sudo apt-get build-dep vim-gnome | |
sudo apt-get install build-essential liblua5.3-0 liblua5.3-dev python3-dev python-dev ruby-dev libperl-dev libncurses5-dev libgnome2-dev libgnomeui-dev libgtk2.0-dev libatk1.0-dev libbonoboui2-dev libcairo2-dev libx11-dev libxpm-dev libxt-dev | |
sudo mkdir /usr/include/lua5.3/{include,lib} | |
sudo cp /usr/include/lua5.3/*.h /usr/include/lua5.3/include/ | |
sudo ln -sf /usr/lib/x86_64-linux-gnu/liblua5.3.so /usr/include/lua5.3/lib/liblua.so | |
sudo ln -sf /usr/lib/x86_64-linux-gnu/liblua5.3.a /usr/include/lua5.3/lib/liblua.a | |
cd /tmp | |
git clone https://github.com/vim/vim.git | |
cd vim | |
git checkout v8.2.1219 | |
make distclean | |
./configure --with-features=huge \ | |
--enable-rubyinterp \ | |
--enable-largefile \ | |
--disable-netbeans \ | |
--enable-python3interp \ | |
--with-python3-config-dir=$(python3-config --configdir) \ | |
--enable-pythoninterp \ | |
--with-python-config-dir=$(python-config --configdir) \ | |
--enable-perlinterp \ | |
--enable-luainterp \ | |
--enable-gui=auto \ | |
--enable-fail-if-missing \ | |
--with-lua-prefix=/usr/include/lua5.3 \ | |
--enable-cscope \ | |
--enable-multibyte | |
make | |
sudo make install |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment