centos 5.5 配置mysql遇到错误及解决办法

 今天给服务器(cent OS 5.4 64位)搭建环境安装mysql-5.1.55.tar.gz

 

./configure --with-charset=utf8  --with-extra-charset=gbk  --with-plugins=innobase,myisam  --with-innodb --enable-thread-safe-client  --with-client-ldflags=-all-static

 

遇到如下错误:

(1)、make[1]: *** [my_new.o] Error 127错误

make[1]: Leaving directory `/home/mysql-5.1.22-rc/mysys'

make: *** [all-recursive] Error 1

(2)、error: No curses/termcap library found

(3)、configure: error: no acceptable C compiler found in $PATH

See `config.log' for more details.

经过一番折腾,找到了解决办法:

1和2的原因是没装gcc,gcc-c++ , 3是没装 ncurses-devel,随后一条命令就搞定了:

yum -y install gcc gcc-c++ ncurses-devel

 

本文出自 “江南孤雁_孤狼” 博客,转载请与作者联系!

你可能感兴趣的:(mysql,error,服务器)