環境: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