安裝mysql,在./configure時出現錯誤:error: No curses/termcap library found的解決辦法

在./configure後,make時出現以下錯誤:

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

在網上找到相關資料,確認是./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

原因:

缺少ncurses安裝包

解決辦法:

下載安裝相應軟件包

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

yum list|grep ncurses

yum -y install ncurses-devel

yum install ncurses-devel


二、如果你的系統是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
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章