Last active
March 30, 2024 22:09
-
-
Save techgaun/2fe3dd3d004d7320a68d 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 apt-get build-dep vim-gnome | |
sudo apt-get install build-essential liblua5.3-0 liblua5.3-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 rm -rf /usr/local/share/vim /usr/bin/vim /usr/local/bin/vim | |
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.0.0503 | |
make distclean | |
./configure --with-features=huge \ | |
--enable-rubyinterp \ | |
--enable-largefile \ | |
--disable-netbeans \ | |
--enable-python3interp \ | |
--with-python-config-dir=$(python3-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 |
worked on wsl ubuntu 18
Worked on ubuntu 16.04.6
sudo apt-get purge vim and sudo apt-get install vim-gtk
worked on WSL ubuntu 18.04
E: Unable to locate package libgnome2-dev
E: Unable to locate package libgnomeui-dev
E: Unable to locate package libbonoboui2-dev
Help!! Its something wrong in Ubantu20.04
I confirm this still works on Pop!_OS 18.04 LTS
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
If you just want vim with lua support on Ubuntu 18.04, dump the original vim (
sudo apt-get purge vim
) andsudo apt-get install vim-gtk
. Even on a server you still get the non-gui version of vim with lua support when you install the vim-gtk package.