我从 CLion 收到以下错误,这意味着我无法编译任何东西。在我更新 Mac 的操作系统之前,它运行良好,这可能相关,也可能无关。我试过重新安装 CLion,但没有奏效。
/Applications/CLion.app/Contents/bin/cmake/mac/bin/cmake -
DCMAKE_BUILD_TYPE=Debug "-DCMAKE_MAKE_PROGRAM=xcode-select --install" -G
"CodeBlocks - Unix Makefiles" /Users/emma/CLionProjects/untitled2
-- The C compiler identification is unknown
-- Check for working C compiler: /usr/bin/cc
CMake Error: Generator: execution of make failed. Make command was:
"/Users/emma/CLionProjects/untitled2/cmake-build-debug/xcode-select --
install" "cmTC_021a3/fast"
-- Check for working C compiler: /usr/bin/cc -- broken
CMake Error at
/Applications/CLion.app/Contents/bin/cmake/mac/share/cmake-
3.13/Modules/CMakeTestCCompiler.cmake:52 (message):
The C compiler
"/usr/bin/cc"
is not able to compile a simple test program.
It fails with the following output:
Change …Run Code Online (Sandbox Code Playgroud) clion ×1