错误 1:g++: error: unrecognized command line option ‘-std=c++14’
错误信息
[ 5%] Building CXX object extra/icu/source/common/CMakeFiles/icuuc.dir/appendable.cpp.o
g++: error: unrecognized command line option ‘-std=c++14’
make[2]: *** [extra/icu/source/common/CMakeFiles/icuuc.dir/appendable.cpp.o] Error 1
make[1]: *** [extra/icu/source/common/CMakeFiles/icuuc.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
MySQL 8.0.18 需要 gcc 5.3 版本及以上,需要检查 gcc
,g++
版本,两者都需要在 5.3 及以上:
[root@localhost ~]# gcc -v
[root@localhost ~]# g++ -v
该错误产生最后检查,gcc
的版本是 5.3.1,g++
的版本是 4.8.5
管理gcc的
[root@localhost ~]# yum install -y centos-release-scl
[root@localhost ~]# yum install -y devtoolset-4
[root@localhost ~]# source /opt/rh/devtoolset-4/enable