安装mysql时 make 时 提示 redeclaration of C++ built-in type ‘bool’ 错误

linux:

In file included from mysys_priv.h:16,
                 from my_new.cc:21:
../include/my_global.h:1107: error: redeclaration of C++ built-in type ‘bool’
make[1]: *** [my_new.o] 错误 1
make[1]:正在离开目录 `/opt/mysql-5.1.50/mysys'
make: *** [all-recursive] 错误 1

安装gcc-c++

sudo apt-get install gcc-c++

sudo apt-get install build-essential

如果还不行:是因为gcc-c++是在configure之后安装的,此时只需重新configure后再编译make即可。


 

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