问题描述 当使用 cmake 编译文件时, 出现错误 Tell CMake where to find the compiler by setting either the environment variable “CXX” or the CMake cache entry CMAKE_CXX_COMPILER to the full path to the compiler, or to the compiler name if it is in the PATH. 解决方法 apt-get update apt-get install -y build-essential