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

 mysql版本:5.1.62

 

執行./configure --prefix=/usr/local/mysql時,遇到error: No curses/termcap library found

 的問題。

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

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~~~

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