make[1]: Leaving directory `/home/li/tools/mysql-5.1.72/mysys'  

make 执行时提示 :g++: not foundmake[2]: *** [my_new.o] Error 127make[2]: Leaving directory `make[1]: Leaving directory `/home/li/tools/mysql-5.1.72/mysys'make[1]: *** [all-recursive] Error 1make[1]: Leaving directory `/home/li/tools/mysql-5.1.72'make: *** [all] Error  

错误原因是少gcc-c++这个包

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

再次执行make 可能还会报错。

/include/my_global.h:909: error: redeclaration of C++ built-in type `bool'
make[2]: *** [my_new.o] Error 1
make[2]: Leaving directory `/home/li/tools/mysql-5.1.72/mysys'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/li/tools/mysql-5.1.72/mysys'
make: *** [all] Error 2
是因为gcc-c++是在configure之后安装的,此时只需重新./configure上一步的安装然后再编译make即可。这里就可以顺利的通过。


你可能感兴趣的:(Directory,make[1],Leaving)