Skip to content

Instantly share code, notes, and snippets.

@rauluranga
Forked from techgaun/vim8.x_with_lua
Created January 21, 2016 18:13
Show Gist options
  • Save rauluranga/fb3d9d97243502f790a9 to your computer and use it in GitHub Desktop.
Save rauluranga/fb3d9d97243502f790a9 to your computer and use it in GitHub Desktop.
Install vim with lua support on ubuntu 15.04
I needed to install vim with lua support because I wanted to use neocomplete in my recently installed 15.04 distro.
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.1-dev luajit libluajit-5.1 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.1/include
sudo cp /usr/include/lua5.1/*.h /usr/include/lua5.1/include/
cd /tmp
git clone https://github.com/vim/vim.git
cd vim
make distclean
./configure --with-features=huge \
--enable-rubyinterp \
--enable-largefile \
--disable-netbeans \
--enable-pythoninterp \
--with-python-config-dir=/usr/lib/python2.7/config \
--enable-perlinterp \
--enable-luainterp \
--with-luajit \
--enable-gui=auto \
--enable-fail-if-missing \
--with-lua-prefix=/usr/include/lua5.1 \
--enable-cscope
make
sudo make install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment