[root@vmware03 cmake-3.13.2]# yum -y install gcc-*
Loaded plugins: fastestmirror, security
Setting up Install Process
Loading mirror speeds from cached hostfile
- base: centos.ustc.edu.cn
- extras: mirrors.huaweicloud.com
- updates: centos.ustc.edu.cn
Package gcc-4.4.7-23.el6.x86_64 already installed and latest version
Package gcc-objc-4.4.7-23.el6.x86_64 already installed and latest version
Package gcc-gfortran-4.4.7-23.el6.x86_64 already installed and latest version
Package gcc-gnat-4.4.7-23.el6.x86_64 already installed and latest version
Package gcc-objc++-4.4.7-23.el6.x86_64 already installed and latest version
Package gcc-java-4.4.7-23.el6.x86_64 already installed and latest version
Package gcc-c++-4.4.7-23.el6.x86_64 already installed and latest version
Nothing to do
[root@vmware03 cmake-3.13.2]# ./bootstrap
---------------------------------------------
CMake 3.13.2, Copyright 2000-2018 Kitware, Inc. and Contributors
Found GNU toolchain
C compiler on this system is: gcc
---------------------------------------------
Error when bootstrapping CMake:
Cannot find a C++ compiler that supports both C++11 and the specified C++ flags.
Please specify one using environment variable CXX.
The C++ flags are "".
They can be changed using the environment variable CXXFLAGS.
See cmake_bootstrap.log for compilers attempted.
---------------------------------------------
Log of errors: /usr/src/cmake-3.13.2/Bootstrap.cmk/cmake_bootstrap.log
---------------------------------------------
安装了c++编译器,但是为什么还有这样的错误呢?请大神指点