RHEL编译安装 vim8.2

vim8.2

YouCompleteMe 需要vim 8 及 python3.6.0+支持。

1
2
3
4
5
6
7
8
[root@master src]# yum install perl-devel python3-devel tcl-devel lua-devel ncurses-devel lua expectk expect-devel
[root@master src]# tar -jxvf vim-8.2.tar.bz2
[root@master src]# cd vim82/src
[root@master src]# ./configure --prefix=/opt/vim82 --enable-luainterp=yes --enable-pythoninterp=yes --with-python3-command=python3 --with-python3-config-dir=/usr/lib64/python3.6/config-3.6m-x86_64-linux-gnu --enable-python3interp=yes --enable-tclinterp=yes --enable-rubyinterp=yes --enable-cscope --enable-terminal --enable-multibyte --with-tclsh=tclsh --with-ruby-command=ruby
[root@master src]# make install
[root@master src]# ln -s /opt/vim82/bin/vim /usr/local/sbin/vim
[root@master src]# vim --version | grep python3
+comments +linebreak +python3 +visualextra

problem

  1. 源码编译vi过程中进行配置时报“checking if compile and link flags for Python are sane… no: PYTHON DISABLED”
1
yum install python3-devel

reference