在编译MySQL时
#./configure –prefix=/usr/local/mysql –with-charset=gbk –with-extra-charsets=all
执行后出现如下错误:
checking for tgetent in -ltermcap… no
checking for termcap functions library… configure: error: No curses/termcap library found
解决方法:
//加入参数–with-named-curses-libs=/usr/lib/libncurses.so.5
#./configure –prefix=/usr/local/mysql –with-charset=gbk –with-extra-charsets=all –with-named-curses-libs=/usr/lib/libncurses.so.5
#make WITH_CHARSET=gbk WITH_XCHARSET=all
#make install