error: No curses/termcap library found的解決辦法

mysql版本:5.1.30

已經不記得這次是第幾次安裝mysql,遇到這個問題倒是第一次。

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

最後幾行出了錯。完整錯誤信息如下:

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

原因:

缺少ncurses安裝包

解決辦法:

下載安裝相應軟件包

一、如果你的系統是RedHat系列:

yum list|grep ncurses

yum -y install ncurses-devel

yum install ncurses-devel

二、如果你的系統是UbuntuDebian

apt-cache search ncurses

apt-get install libncurses5-dev

待安裝completed!之後,再./configure,順利通過,然後make && make install,成功安裝,一切OK


發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章