安装mysql,在./configure时出现错误:error: No curses/termcap library found的解决办法
在手动编译安装mysql的过程中.发生错误如下:
在./configure后
最后几行出了错,完整错误信息如下:
checking for tgetent in -lncurses... no
checking for tgetent in -lcurses... no
checking for tgetent in -ltermcap... no
checking for tgetent in -ltinfo... no
checking for termcap functions library... configure: error: No curses/termcap library found
原因:
缺少ncurses安装包
解决办法:
下载安装相应软件包
# tar -zvxf ncurses-5.7.tar.gz
# ./configure
# make
# make install
如果已经安装了ncurses,还是有这个错误
安装ncurses-devel-5.5-24.20060715.i386.rpm
#rpm -ivh ncurses-devel-5.5-24.20060715.i386.rpm
然后再执行./configure
make编译搞定
Starting MySQLCouldn't find MySQL manager or server [FAILED]
解决方法:mv /etc/my.cnf /etc/my.cnf.old