CetnOS 編譯MySql出錯:No curses/termcap library found

環境:CentOS linux 5.5
系統只安裝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
如果Ubuntu上安裝了VMwareTools-版本號.tar.gz則不需要安裝libncurses5-dev,在編譯時加上
--with-named-curses-libs=/usr/lib/libncurses.so.5

0

收藏

獨孤青揚

46篇文章,12W+人氣,0粉絲

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