Ubuntu:
# install libs
sudo apt-get install libncurses5-dev libperl-dev python-dev ruby-dev mercurial checkinstall lua5.2 liblua5.2-dev
# make link
sudo ln -s /usr/include/lua5.2/ /usr/include/lua
# clone vim
git clone git@github.com:vim/vim.git
# neocomplete does not work with Vim 8.2.1066+
wget https://github.com/vim/vim/archive/refs/tags/v8.2.1065.tar.gz -O vim.tar.gz
# enter working directr
cd ~/vim/src
# config to support lua (as well as ruby python perl), tried so many times, sigh...
./configure --enable-perlinterp \
--enable-pythoninterp \
--enable-rubyinterp \
--enable-luainterp \
--with-lua-prefix=/usr
# make
make
# install
sudo make install
CentOS:
# install libs
sudo yum install -y ncurses-devel perl-ExtUtils-Embed perl-devel python-devel ruby-devel lua-devel
# clone vim
git clone git@github.com:vim/vim.git
# neocomplete does not work with Vim 8.2.1066+
wget https://github.com/vim/vim/archive/refs/tags/v8.2.1065.tar.gz -O vim.tar.gz
# enter working directr
cd ~/vim/src
# configure
./configure --enable-perlinterp \
--enable-pythoninterp \
--enable-rubyinterp \
--enable-luainterp \
--with-lua-prefix=/usr
# make
make
# install
sudo make install
Comments