安装 MYSQL exec: g++: not found 报错

源码安装  MYSQL ,,MAKE  时报错。
 
../depcomp: line 512: exec: g++: not found
make[2]: *** [my_new.o] 错误 127
make[2]: Leaving directory `/tmp/lamp/mysql-5.0.56/mysys'
make[1]: *** [all-recursive] 错误 1
make[1]: Leaving directory `/tmp/lamp/mysql-5.0.56'
make: *** [all] 错误 2
[root@localhost mysql-5.0.56]#
 
解决办法:
yum install -y gcc-c++
 

你可能感兴趣的:(linux,mysql,数据库,职场,休闲)