Last active
May 10, 2017 09:47
-
-
Save pavlov99/0b12ff41a7061aeb2dec to your computer and use it in GitHub Desktop.
vim configuration with python2
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
./configure \ | |
--enable-perlinterp \ | |
--enable-pythoninterp \ | |
--enable-rubyinterp \ | |
--enable-luainterp \ | |
--enable-fail-if-missing \ | |
--enable-cscope \ | |
--enable-gui=auto \ | |
--enable-gtk2-check \ | |
--enable-gnome-check \ | |
--with-features=huge \ | |
--enable-multibyte \ | |
--with-compiledby="Kirill Pavlov <[email protected]>" \ | |
--prefix=/usr \ | |
--with-luajit \ | |
--with-lua-prefix=/usr/local |
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
# In order to use YouCompleteMe, one required to compile vim with python2. | |
sudo apt-get install \ | |
liblua5.1-dev \ | |
luajit \ | |
libluajit-5.1 \ | |
python-dev \ | |
ruby-dev \ | |
libperl-dev \ | |
libncurses5-dev | |
sudo mkdir /usr/include/lua5.1/include | |
sudo mv /usr/include/lua5.1/*.h /usr/include/lua5.1/include/ | |
./configure \ | |
--enable-perlinterp \ | |
--enable-pythoninterp \ | |
--enable-rubyinterp \ | |
--enable-luainterp \ | |
--enable-fail-if-missing \ | |
--with-luajit \ | |
--with-lua-prefix=/usr/include/lua5.1 \ | |
--enable-cscope \ | |
--enable-gui=auto \ | |
--enable-gtk2-check \ | |
--enable-gnome-check \ | |
--with-features=huge \ | |
--enable-multibyte \ | |
--with-compiledby="Kirill Pavlov <[email protected]>" \ | |
--with-python-config-dir="/usr/lib/python2.7/config-"$(uname -m)"-linux-gnu" \ | |
--prefix=/usr | |
make | |
sudo make install |
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
pyversion=$(python3 -c "import sys; print('.'.join(map(str, sys.version_info[:2])))") | |
./configure \ | |
--enable-perlinterp \ | |
--enable-python3interp \ | |
--enable-rubyinterp \ | |
--enable-cscope \ | |
--enable-gui=auto \ | |
--enable-gtk2-check \ | |
--enable-gnome-check \ | |
--with-features=huge \ | |
--enable-multibyte \ | |
--with-compiledby="Kirill Pavlov <[email protected]>" \ | |
--with-python3-config-dir="/usr/lib/python"$pyversion"/config-"$pyversion"m-"$(uname -m)"-linux-gnu" \ | |
--prefix=/usr |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
apt-get install ncurses-dev python3-dev ruby ruby-dev
GUI support
apt-get install libx11-dev libxt-dev libgtk2.0-dev