安裝mysql,在./configure時出現錯誤:error: No curses/termcap library found的解決辦法(1)
安裝mysql,在./configure時出現錯誤:error: No curses/termcap library found的解決辦法
mysql版本:5.1.30
已經不記得這次是第幾次安裝mysql了,遇到這個問題倒是第一次。
之前在tar,./configure,make,make install 經典四步時,從來沒有想過其中的過程,只覺得像例行公事一樣,做就是了。
不幸的是,這次在./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!~~~
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.