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