一、mysql源码编译安装时error: No curses
 
1.mysql源码编译安装时出现报错error:No curses
[root@mail mysql-5.0.22]# ./configure --prefix=/usr/local/mysql/ --with-extra-charsets=utf8,gbk,gb2312 --with-client-ldflags=-all-static --with-mysqld-ldflags=-all-static --with-big-tables
checking for tgetent in -ltermcap… no
checking for termcap functions library… configure: error: No curses/termcap library found
2.因为: curses/termcap 库没有安装
3.方法:ncurses-devel-5.5-24.20060715.i386.rpm
[root@mail mysql-5.0.22]# rpm -ivh ncurses-devel-5.5-24.20060715.i386.rpm
4../confiure 编译安装
 
二、编译完成后执行make时又出现报错:
编译完后make时报错:
../depcomp: line 571: exec: g++: not found
make[1]: *** [my_new.o] Error 127
make[1]: Leaving directory `/home/sysadmin/zhaoyj/packages/mysql-5.1.56/mysys'
make: *** [all-recursive] Error 1
 原因为没有安装gcc-c++包
安装c++包解决故障
[root@mail mysql-5.0.22]# rpm -ivh libstdc++-devel-4.1.2-44.el5.i386.rpm gcc-c++-4.1.2-44.el5.i386.rpm