Home >Database >Mysql Tutorial >编译mysql5.1.68 make时候出现./include/my

编译mysql5.1.68 make时候出现./include/my

WBOY
WBOYOriginal
2016-06-07 15:02:181191browse

./depcomp: line 512: exec: g: not found make[2]: *** [my_new.o] 错误 127 make[2]: Leaving directory `/usr/local/setup/mysql-5.1.68b/mysys' make[1]: *** [all-recursive] 错误 1 make[1]: Leaving directory `/usr/local/setup/mysql-5.1.68b' make

./depcomp: line 512: exec: g++: not found
make[2]: *** [my_new.o] 错误 127
make[2]: Leaving directory `/usr/local/setup/mysql-5.1.68b/mysys'
make[1]: *** [all-recursive] 错误 1
make[1]: Leaving directory `/usr/local/setup/mysql-5.1.68b'
make: *** [all] 错误 2
[root@gameserver mysql-5.1.68b]# yum install -y gcc-c++ 


解决办法:
yum install -y gcc-c++

../include/my_global.h:1088: 错误:对 C++ 内建类型 ‘bool’ 的重声明

是的话 重新./configure  在make clean  make make install  就解决了

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn