环境:通前篇
1、错误:缺少 /curses/temrcap
checking for termcap functions library... configure: error: No curses/termcap library found
2、解决方法:
2.1、查看所有已经安装和可以安装的有关ncurses的程序包
[root@localhost updates]# yum list | grep ncurses ncurses.x86_64 5.7-3.20090208.el6 @anaconda-CentOS-201311272149.x86_64/6.5 ncurses-base.x86_64 5.7-3.20090208.el6 @anaconda-CentOS-201311272149.x86_64/6.5 ncurses-libs.x86_64 5.7-3.20090208.el6 @anaconda-CentOS-201311272149.x86_64/6.5 ncurses-devel.i686 5.7-3.20090208.el6 base ncurses-devel.x86_64 5.7-3.20090208.el6 base ncurses-libs.i686 5.7-3.20090208.el6 base ncurses-static.x86_64 5.7-3.20090208.el6 base ncurses-term.x86_64 5.7-3.20090208.el6 base
2.2、安装所需软件
# yum -y install ncurses-devel
3、若为Ubuntu/Debian系列,用:
apt-cache search ncurses apt-get install libncurses5-dev
(未测试)
以上参考网址:
http://www.shangxueba.com/jingyan/121278.html (问题解决的方法)
http://www.cnblogs.com/chuncn/archive/2010/10/17/1853915.html (yum参数说明)
原文:http://www.cnblogs.com/chinas/p/4418595.html