Last active
July 18, 2019 18:22
-
-
Save Mistobaan/b1384a44e8b5a8b35c6e1c7a4c546e84 to your computer and use it in GitHub Desktop.
Compile VIM from branch 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
#!/bin/sh | |
set -e | |
sudo apt-get remove --purge vim vim-runtime vim-gnome vim-tiny vim-common vim-gui-common | |
sudo apt-get install liblua5.1-dev luajit libluajit-5.1 python-dev ruby-dev libperl-dev mercurial libncurses5-dev libgnome2-dev libgnomeui-dev libgtk2.0-dev libatk1.0-dev libbonoboui2-dev libcairo2-dev libx11-dev | |
sudo mkdir -p /usr/include/lua5.1/include | |
sudo ln -s /usr/include/luajit-2.0 /usr/include/lua5.1/include | |
export PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin | |
cd vim/src | |
make distclean | |
./configure --with-features=huge \ | |
--enable-multibyte \ | |
--enable-largefile \ | |
--enable-rubyinterp \ | |
--enable-netbeans \ | |
--enable-pythoninterp \ | |
--with-python-config-dir=/usr/lib/python2.7/config-x86_64-linux-gnu \ | |
--enable-python3interp \ | |
--with-python3-config-dir=/usr/lib/python3.5/config-3.5m-x86_64-linux-gnu \ | |
--enable-luainterp \ | |
--with-luajit \ | |
--with-lua-prefix=/usr/include/lua5.1 \ | |
--enable-gui=auto \ | |
--enable-fail-if-missing \ | |
--enable-cscope \ | |
--prefix=/usr 2>config_err.log >config.log || cat config_err.log | |
make VIMRUNTIMEDIR=/usr/share/vim/vim80 | |
sudo make install | |
sudo update-alternatives --install /usr/bin/editor editor /usr/bin/vim 1 | |
sudo update-alternatives --set editor /usr/bin/vim | |
sudo update-alternatives --install /usr/bin/vi vi /usr/bin/vim 1 | |
sudo update-alternatives --set vi /usr/bin/vim |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment