码迷,mamicode.com
首页 > 系统相关 > 详细

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

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

标签:linux vim

要用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遇到的问题和解决方法

标签:linux vim

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

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!