环境: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
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
#./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
就可以
本文介绍在CentOS 5.2环境下配置MySQL时遇到的错误及其解决办法。主要问题是在配置过程中缺少必要的curses/termcap库,通过指定库路径或在Ubuntu系统中安装libncurses5-dev来解决。
9275

被折叠的 条评论
为什么被折叠?



