CentOS 安装 MySQL 出错帮助

2014-11-24 17:52:34 · 作者: · 浏览: 2

如果编译时出现了以下错误:
checking for tgetent in -ltermcap… no
checking for termcap functions library… configure: error: No curses/termcap library found
说明 curses/termcap 库没有安装


然后增加一条编译参数
--with-named-curses-libs=/usr/lib/libncursesw.so.5
就可以了


出现:configure: error: No curses/termcap library found
解决方法:


# ./configure --prefix=/usr/local/mysql


为 .#./configure --with-named-curses-libs=/usr/lib/libncursesw.so.5


出现:


../depcomp: line 571: exec: g++: not found
make[1]: *** [my_new.o] 错误 127
make[1]: Leaving directory `/home/justme/software/mysql-5.1.30/mysys'
make: *** [all-recursive] 错误 1


解决 :


下载 安装 gcc-c++-4.1.2-33.i386.rpm(yum intall gcc-c++)


安装或者重新mysql-5.1.30时mysql_install_db出现FATAL ERROR: Could not find mysqld错误解决,


因为/etc/mysql/下出现了个my.cnf


解决方法:


mv /etc/my.cnf /etc/my.cnf.bak


cp support-files/my-medium.cnf /etc/cnf