centos中cmake安装编译报错
1、安装cmake
# wget http://www.cmake.org/files/v3.1/cmake-3.1.1.tar.gz
# tar zxvf cmake-3.1.1.tar.gz
# cd cmake-3.1.1
# ./bootstrap
# make && make install
报错1:
Error when bootstrapping CMake:
Cannot find appropriate C compiler on this system.
Please specify one using environment variable CC.
See cmake_bootstrap.log for compilers attempted.
解决1:# yum install -y gcc
报错2:
Error when bootstrapping CMake:
Cannot find appropriate C++ compiler on this system.
Please specify one using environment variable CXX.
See cmake_bootstrap.log for compilers attempted.
解决2: yum install gcc-c++

浙公网安备 33010602011771号