CentOS 安装 MySQL 出错帮助


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

出现这样的原因,首先要将ncurses的相关包包安装上
一、如果你的系统是RedHat系列:
yum list|grep ncurses
yum -y install ncurses-devel
yum install ncurses-devel

二、如果你的系统是Ubuntu或Debian:
apt-cache search ncurses
apt-get install libncurses5-dev

然后增加一条编译参数
--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

相关内容