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

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

解决方法:vim

sudo apt-get install libncurses5-dev

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

 

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

tar jxf vim-7.3.tar.bz2

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

 

3.继续在终端输入ci

cd vim73
cd src
./configure

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

 

4.在/src目录下输入get

sudo make
sudo make install

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

注意:在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直接能够进入

相关文章
相关标签/搜索