No CMAKE_CXX_COMPILER could be found. Tell CMake where to find the compiler by setting either t

报错:

CMake Error at CMakeLists.txt:14 (project):
  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 g++        即可

你可能感兴趣的:(linux,运维,服务器)