編輯MYSQL時出錯:No curses/termcap library found

環境:CentOS linux 5.2
系統只安裝VI編輯器與開發工具
 
在編輯MYSQL時:
#./configure --prefix=/usr/local/mysql --with-charset=gb2312  --with-extra-charsets=all 
執行後出現如下錯誤:
checking for tgetent in -ltermcap… no
checking for termcap functions library… configure: error: No curses/termcap library found
 
解決方法:
編譯時加上路徑即可解決,即
#./configure --prefix=/usr/local/mysql --with-charset=gb2312  --with-extra-charsets=all --with-named-curses-libs=/usr/lib/libncurses.so.5

如果是Ubuntu,需要安裝.sudo apt-get install libncurses5-dev
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章