Last active
December 16, 2018 02:43
-
-
Save fredriks/ac7f955a19ad49d8ee82 to your computer and use it in GitHub Desktop.
Build vim 7.4 with lua support - Ubuntu 14.04 (Trusty)
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 libperl-dev ruby-dev liblua5.2-dev | |
# Fix liblua paths | |
sudo ln -s /usr/include/lua5.2 /usr/include/lua | |
sudo ln -s /usr/lib/x86_64-linux-gnu/liblua5.2.so /usr/local/lib/liblua.so | |
# Clone vim sources | |
sudo apt-get install git | |
git clone https://github.com/vim/vim.git | |
cd vim | |
./configure --prefix=/usr \ | |
--enable-luainterp=yes \ | |
--enable-perlinterp=yes \ | |
--enable-pythoninterp=yes \ | |
--enable-rubyinterp=yes \ | |
--enable-cscope \ | |
--disable-netbeans \ | |
--enable-multibyte \ | |
--enable-largefile \ | |
--enable-gui=no \ | |
--with-features=huge \ | |
--with-python-config-dir=/usr/lib/python2.7/config-x86_64-linux-gnu | |
make VIMRUNTIMEDIR=/usr/share/vim/vim74 | |
sudo apt-get install checkinstall | |
sudo checkinstall |
I got lua support only after I added:
--with-lua-prefix=/usr/include/lua5.2
It works, thanks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks