Home >Database >Mysql Tutorial >mysql: No curses/termcap library found解决方法

mysql: No curses/termcap library found解决方法

WBOY
WBOYOriginal
2016-06-07 17:52:401374browse

下面我来介绍mysql: No curses/termcap library found解决办法,有需要的朋友可参考。

编译MysQL时出现了以下错误:

 代码如下 复制代码

checking for tgetent in -ltermcap… no
checking for termcap functions library… configure: error: No curses/termcap library found


所安装mysql版本:5.1.30,在./configure后,make时出现以下错误:

make: *** No targets specified and no makefile found.

在网上找到相关资料,确认是./configure出了问题,于是回头查看,果然发现问题,最后几行出了错。完整错误信息如下:

 代码如下 复制代码

checking for tgetent in -lncurses… no

checking for tgetent in -lcurses… no

checking for tgetent in -ltermcap… no

checking for tgetent in -ltinfo… no

checking for termcap functions library… configure: error: No curses/termcap library found

错误原因分析:

说明 curses/termcap 库没有安装,下载ncurses-5.6.tar.gz,安装:

解决办法1

 代码如下 复制代码

wget http://ftp.gnu.org/pub/gnu/ncurses/ncurses-5.6.tar.gz
tar zxvf ncurses-5.6.tar.gz
cd ncurses-5.6
./configure –prefix=/usr –with-shared –without-debug
make
make install clean

解决办法2

下载安装相应软件包

一、如果你的系统是RedHat系列,比如CentOS:

 代码如下 复制代码

yum list | grep ncurses

yum -y install ncurses-devel

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

 代码如下 复制代码

apt-cache search ncurses

apt-get install libncurses5-dev

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

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn