ubuntu cmake reported that CMAKE_CXX_COMPILER could not be found

The error is as follows

CMake Error in CMakeLists.txt:

  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.

Install g++ and gcc try

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326681425&siteId=291194637