使用./bootstrap
命令安装时出现此错误cmake
---------------------------------------------
CMake 3.18.0, Copyright 2000-2020 Kitware, Inc. and Contributors
---------------------------------------------
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.
我检查了 gcc 并得到了
gcc --version
bash: /usr/bin/gcc: No such file or directory
whereis gcc
gcc: /usr/lib/gcc /usr/share/man/man1/gcc.1.gz
我检查了 cmake_bootstrap.log
文件并得到了
./bootstrap: 803: ./bootstrap: /usr/local/bin/gcc-7: not found
Test failed to compile