首页 > 系统服务 > 详细

CentOS 7 装vim遇到的问题和解决方法

时间:2017-03-27 20:02:24      阅读:1226      评论:0      收藏:0      [点我收藏+]

要用vim命令,系统自带vi,却无vim

去官网相应版本的vim,这边我选的是7.3版的

ftp://ftp.vim.org/pub/vim/unix/


解压后,会生成个vim73的文件夹,不同版本可能数字不同

./configure 报错,提示如下:

no terminal library found
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

解决方法,安装ncurses-dev,参考帖子如下:

http://askubuntu.com/questions/158344/no-terminal-library-found-when-compiling-vim


https://rpmfind.net/linux/rpm2html/search.php?query=ncurses-dev&submit=Search+...&system=centos&arch= 下载ncurses-dev

然后rpm -ivh安装

好了以后开始vim的./configture  make  make install 三重奏

OVER

本文出自 “101010...010101” 博客,请务必保留此出处http://legendland.blog.51cto.com/2043145/1910796

CentOS 7 装vim遇到的问题和解决方法

原文:http://legendland.blog.51cto.com/2043145/1910796

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!