在尝试在新的 Kubuntu 安装上构建https://gitlab.com/interception/linux/tools时,cmake ..
从tools/build
目录运行会返回错误:
CMake Error at CMakeLists.txt:3 (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.
Run Code Online (Sandbox Code Playgroud)
我刚刚安装cmake
并假设它会配备它的编译器,但也许它需要配置才能使用?
ale*_*lec 21
“编译器”是一个需要安装的单独包。一个调用g++
可以单独安装,也包含在一个名为“build-essential”的包中。
因此sudo apt-get install build-essential
解决了问题(并且sudo apt-get install g++
应该也可以),允许cmake ..
在不需要配置的情况下工作。
归档时间: |
|
查看次数: |
40091 次 |
最近记录: |