缺少ncurses包的解决办法

安装Erlang时出现如下问题:

 
    
checking for kstat_open in - lkstat... no
checking
for tgetent in - lncurses... no
checking
for tgetent in - lcurses... no
checking
for tgetent in - ltermcap... no
checking
for tgetent in - ltermlib... no
configure:
error : No curses library functions found
configure:
error : / bin / sh ' /home/niewf/software/erlang_R13B01/erts/configure ' failed for erts

在网上找了一下,发现该问题在安装Mysql的时候也可能发生。

原因

缺少ncurses安装包

解决方法:

下载安装相应软件包

a)、如果你的系统是RedHat系列:

yum list|grep ncurses

yum -y install ncurses-devel

yum install ncurses-devel

b)、如果你的系统是Ubuntu或Debian:

apt-cache search ncurses

apt-get install libncurses5-dev

待安装completed!之后,再./configure,顺利通过,然后make && make install,成功安装,一切OK!~~~

参考:http://blog.csdn.net/zccst/archive/2009/08/28/4493074.aspx

转载于:https://www.cnblogs.com/nwf5d/archive/2011/03/07/1973293.html

你可能感兴趣的:(缺少ncurses包的解决办法)