redhat 安装vim 总结

---系统版本

[root@localhost vim73]# lsb_release -a
LSB Version: :core-3.1-ia32:core-3.1-noarch:graphics-3.1-ia32:graphics-3.1-noarch
Distributor ID: RedHatEnterpriseServer
Description: Red Hat Enterprise Linux Server release 5.2 (Tikanga)
Release: 5.2
Codename: Tikanga

---查看已安装的vim

[root@localhost vim73]# rpm -qa | grep vim
vim-minimal-7.0.109-3.el5.3

虽然已经安装 但是不知道为什么用不了vim,于是安装了最新的vim7.3

 

准备的安装包有vim-7.3.tar.bz2、vim-7.2-lang.tar.gz。ncurses-devel-5.5-24.20060715.i386.rpm

 

 

[root@localhost] tar -zxvf vim-7.3.tar.bz2

[root@localhost] tar -zxvf vim-7.3.tar

[root@localhost] tar -zxvf vim-7.2-lang.tar.gz

 

[root@localhost] cd vim73

 

[root@localhost vim73] ./configure --prefix=/usr/local --enable-multibyte --with-features=big --disable-selinux

如果出现需要安装ncurse

checking for tgetent()... configure: error: NOT FOUND!

 

You need to install a terminal library; for example ncurses.

 

Or specify the name of the library with --with-tlib.

 

[root@localhost] rpm -Uvh ncurses-devel-5.5-24.20060715.i386.rpm --force --nodeps

 

---

[root@localhost]# rpm -qa |grep ncurse
ncurses-5.5-24.20060715
ncurses-devel-5.5-24.20060715

 

---ncurse安装成功后

进入到vim73中

 

[root@localhost vim73] ./configure --prefix=/usr/local --enable-multibyte --with-features=big --disable-selinux

 

[root@localhost vim73] make && make install

[root@localhost vim73] vim

 

 


~ VIM - Vi IMproved
~
~ version 7.3
~ by Bram Moolenaar et al.
~ Vim is open source and freely distributable
~
~ Become a registered Vim user!
~ type :help register<Enter> for information
~
~ type :q<Enter> to exit
~ type :help<Enter> or <F1> for on-line help
~ type :help version7<Enter> for version info
~
~ Running in Vi compatible mode
~ type :set nocp<Enter> for Vim defaults
~ type :help cp-default<Enter> for info on this

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值