解决 No CMAKE_CXX_COMPILER could be found问题
解决 No CMAKE_CXX_COMPILER could be found
./build.sh
– The C compiler identification is GNU 9.4.0
– The CXX compiler identification is unknown
– Check for working C compiler: /usr/bin/cc
– Check for working C compiler: /usr/bin/cc – works
– Detecting C compiler ABI info
– Detecting C compiler ABI info - done
– Detecting C compile features
– Detecting C compile features - done
CMake Error at CMakeLists.txt:2 (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.
– Configuring incomplete, errors occurred!
See also “/home/chen/share/balong/build/CMakeFiles/CMakeOutput.log”.
See also “/home/chen/share/balong/build/CMakeFiles/CMakeError.log”.
make: *** No targets specified and no makefile found. Stop.
fail
解决方案:
sudo apt install -y build-essential
本文来自互联网用户投稿,文章观点仅代表作者本人,不代表本站立场,不承担相关法律责任。如若转载,请注明出处。 如若内容造成侵权/违法违规/事实不符,请点击【内容举报】进行投诉反馈!
