Upgrade VIM7.2 to VIM7.4 in CentOS 6.5
To see if the installation:
[Email protected] ~]# rpm-qa| grep vim
Vim-minimal-7.2.411-1.8.el6.x86_64
Vim-common-7.2.411-1.8.el6.x86_64
Vim-enhanced-7.2.411-1.8.el6.x86_64
[Email protected] ~]# rpm-evim-minimal-7.2.411-1.8.el6.x86_64 vim-enhanced-7.2.411-1.8.el6.x86_ 64vim-common-7.2.411-1.8.el6.x86_64--nodeps
[Email protected] ~]# Rpm-aq|grep vim
Note:the--nodeps option is to remove the dependency offload, without reporting:Vim-minimal is needed by (installed) sudo-1.8.6p3-15.el6.x86_64 and so on.
Ii> Compiling and installing VIM 7.4
First, download
[Email protected] src]# wgetftp://ftp.vim.org/pub/vim/unix/vim-7.4.tar.bz2
[Email protected] src]# wgetftp://ftp.vim.org/pub/vim/extra/vim-7.2-extra.tar.gz
[Email protected] src]# wgetftp://ftp.vim.org/pub/vim/extra/vim-7.2-lang.tar.gz
Second, decompression
[Email protected] src]# tar jxvfvim-7.4.tar.bz2
[Email protected] src]# tar zxvf vim-7.2-extra.tar.gz
[Email protected] src]# tar zxvfvim-7.2-lang.tar.gz
[Email protected] src]# MV Vim72 vim74
Third, install the dependent library
[email protected] src]# Yum installncurses-devel-y
Iv. Configuring the confure file
[Email protected] src]# CD VIM74/SRC
[Email protected] src]#/configure--with-features=huge--enable-rubyinterp-- Enable-pythoninterp--enable-luainterp--enable-multibyte--enable-sniff--enable-fontset-- Enable-cscope--enable-gui=auto--prefix=/usr--enable-xsmp--enable-xim--ENABLE-GPM
Five, compile
[[email protected] src]# make
[[Email protected]]# make install
Six, test whether upgrade success
[Email protected] src]# vim--version
vii. Increase of gvim support
[email protected] src]# Yum install vim-x11-y
Eight, check whether the installation is successful
[Email protected] src]# Rpm-qa |grep vim
Vim-common-7.2.411-1.8.el6.x86_64
Vim-x11-7.2.411-1.8.el6.x86_64
This article is from the "Innocence" blog, be sure to keep this source http://innocence.blog.51cto.com/4313888/1878892
Upgrading CentOS 6.5 from VIM7.2 to VIM7.4