1. 程式人生 > >CMake錯誤No CMAKE_CXX_COMPILER could be found.

CMake錯誤No CMAKE_CXX_COMPILER could be found.

No CMAKE_CXX_COMPILER could be found.

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.

解決方法:

sudo apt-get update
sudo apt-get install -y
build-essential