# tar –zxvf mysql-5.0.95
# ./configure --prefix=/usr/local/mysql --with-charset=gbk
# make
# make install
但在make的时候 出现
make: *** No targets specified and no makefile found. stop.
仔细查看 ./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(重点错误)
看错误提示 可知是找不到curses,, 所以是缺少ncurses安装包 造成的
解决方法如下:
我的系统是RedHat5系列:
yum list|grep ncurses
yum -y install ncurses-devel
yum install ncurses-devel
完成后,重新 ./configure --prefix=/usr/local/mysql --with-charset=gbk,make && make install
ok!