最近刚安装了Ubuntu 12.04 LTS版本,今天又在折腾安装VIM,由于需要VIM的gdb调试功能,因此选择了编译源文件的安装方式,简单的配置后,开始编译,但是却出现了下面的错误:
checking –with-tlib argument… empty: automatic terminal library selection
checking for tgetent in -lncurses… no
checking for tgetent in -ltermlib… no
checking for tgetent in -ltermcap… no
checking for tgetent in -lcurses… no
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.
提示没有terminal library,那我们就安装一个terminal library吧,提示中举例的terminal library为ncurses,那我们就安装这个吧,指令如下:
sudo apt-get install libncurses5-dev
如果没法安装,那你得检查下你的软件源设置和网络连接了~~~
转载请注明:Coding Ants » Linux中编译安装VIM:no terminal library found错误解决办法
Thanks!