exec: g++: not found

../depcomp: line 571: exec: g++: not found
make[1]: *** [my_new.o] 错误 127
make[1]: Leaving directory `/home/justme/software/mysql-5.1.30/mysys'
make: *** [all-recursive] 错误 1
解决 :
下载 安装 gcc-c++

fedora

yum intall gcc-c++

ubuntu

sudo apt-get install g++ 

安装或者重新mysql-5.1.30时 mysql_install_db出现FATAL ERROR: Could not find mysqld错误解决,

因为/etc/mysql/下出现了个my.cnf

解决方法:

mv /etc/my.cnf   /etc/my.cnf.bak

cp spport-files/my-medium.cnf   /etc/cnf

你可能感兴趣的:(C++,c,mysql,gcc,C#)