美文网首页
解决CMake错误No CMAKE_CXX_COMPILER c

解决CMake错误No CMAKE_CXX_COMPILER c

作者: 我说的这句话是谎话 | 来源:发表于2019-10-19 15:02 被阅读0次

在 WSL 中用了

cmake .

命令,
出现问题:

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

相关文章

网友评论

      本文标题:解决CMake错误No CMAKE_CXX_COMPILER c

      本文链接:https://www.haomeiwen.com/subject/ecfwmctx.html