环境: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
职场 mysql 数据库 Linux服务器安全及应用

0

收藏

上一篇:解决Linux中文乱码 下一篇:postfix auth_get...
独孤青扬

45篇文章,16W+人气,0粉丝