欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  数据库

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

程序员文章站 2022-05-05 16:22:04
...

./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 就解决了