g++ -DDEFAULT_BASEDIR=\"/usr/local/mysql5.0.45\" -DDATADIR="\"/usr/local/mysql5.0.45/var\"" -DDEFAULT_CHARSET_HOME="\"/usr/local/mysql5.0.45\"" -DSHAREDIR="\"/usr/local/mysql5.0.45/share/mysql\"" -DDEFAULT_HOME_ENV=MYSQL_HOME -DDEFAULT_GROUP_SUFFIX_ENV=MYSQL_GROUP_SUFFIX
-DDEFAULT_SYSCONFDIR="\"/usr/local/mysql5.0.45/etc\"" -DHAVE_CONFIG_H -I. -I. -I.. -I../zlib -I../include -I../include -I. -O -DDBUG_OFF -fno-implicit-templates -fno-exceptions -fno-rtti -c -o my_new.o my_new.cc
../depcomp: line 512: exec: g++: not found
make[2]: *** [my_new.o] Error 127
make[2]: Leaving directory `/home/mysql-5.0.45/mysys'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/mysql-5.0.45'
make: *** [all] Error 2
解决办法:
安装gcc-c++
安装完后,make clean 后只需重新configure后再编译make即可