CLion is not working after mac os updated 关注
I just updated macOs to macOs Catalina 10.15.6. Then I got these ERROR from CLION
CMake Error at CMakeLists.txt:2 (project): The CMAKE_C_COMPILER: /Library/Developer/CommandLineTools/usr/bin/cc is not a full path to an existing compiler tool. Tell CMake where to find the compiler by setting either the environment variable "CC" or the CMake cache entry CMAKE_C_COMPILER to the full path to the compiler, or to the compiler name if it is in the PATH. CMake Error at CMakeLists.txt:2 (project): The CMAKE_CXX_COMPILER: /Library/Developer/CommandLineTools/usr/bin/c++ is not a full path to an existing compiler tool. 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 "/Users/xxx/Documents/GitHub/private-bustub/cmake-build-debug/CMakeFiles/CMakeOutput.log". Cannot read /Users/xxx/Documents/GitHub/private-bustub/cmake-build-debug/CMakeFiles/3.14.5/CMakeCCompiler.cmake Cannot read /Users/xxx/Documents/GitHub/private-bustub/cmake-build-debug/CMakeFiles/3.14.5/CMakeCXXCompiler.cmake Cannot get compiler information: Cannot run program "/Library/Developer/CommandLineTools/usr/bin/c++" (in directory "/Users/xxx/Documents/GitHub/private-bustub/cmake-build-debug/googletest-build/googlemock"): error=2, No such file or directory
I googled and tried to upgrade xcode but it just can't fix this. Any ideas what to do?
Solved by Updating Clion.
I have this same problem. Fresh install of CLion last night, and I updated Big Sur to 11.2.2 this morning. I am getting the same error, and am unable to fix it. I have reinstalled xcode-select and CLion is (correctly?) detecting the C and C++ compilers. Screenshot attached.
There is no available update to CLion so the solution above will not work.
Abbas Egbeyemi I believe I am in the same situation as you, CLion was working fine, I updated to the same version of macOS, and suddenly CLion stopped working with the same error. Fixed by opening the mac terminal and running "xcode-select --install" to update xcode command line tools (alternatively you could open settings->software update and update it from there if it shows up). Hope this helps!
Thanks for your response Ryanfiocca44. I already ran "xcode-select install" and reinstalled command line tools. Same issue. I am using an Apple M1 MacBook Pro, and CLion for Apple Silicon. That might be the difference between our systems?
How can you update CLion without opening it up?