加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 综合聚焦 > 服务器 > 安全 > 正文

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

发布时间:2020-12-15 16:57:00 所属栏目:安全 来源:网络整理
导读:no terminal library foundchecking 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是一个比较老的库 解决方法: sudo apt-ge
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是一个比较老的库

解决方法:

sudo apt-get install libncurses5-dev

1.到官网下载vim-7.3.tar.bz2包

2.打开终端,通过命令行解压缩,输入

tar jxf vim-7.3.tar.bz2

此时会在当前目录下生成vim73文件夹

3.继续在终端输入

cd vim73
cd src
./configure

经过前面几步,会在/vim73/src目录下生成MakeFile文件

4.在/src目录下输入

sudo make
sudo make install

完成这步就完成了编译,安装

注意:在make过程中可能会碰到下面的问题:

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是一个比较老的库

解决方法:

sudo apt-get install libncurses5-dev

5.再输入

sudo apt-get install vim-gnome

此时在/src目录输入vim就可以进入了,还需要修改一下路径

6.将软件所在位置添加到环境变量中

PATH=$PATH:/usr/local/bin

这样打开终端输入vim直接可以进入

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读