Error codes.

When I open CLion, it gives me all of these error codes. What can i do to fix it?

Error:The C compiler "/usr/bin/cc" is not able to compile a simple test program.
It fails with the following output:
Change Dir: /Users/marcusjensen/Library/Caches/CLion2016.2/cmake/generated/untitled1-acdabcc9/acdabcc9/__default__/CMakeFiles/CMakeTmp
Run Build Command:"/usr/bin/make" "cmTC_54f67/fast"
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
CMake will not be able to correctly generate this project.

Error:Configuration Debug
The C compiler "/usr/bin/cc" is not able to compile a simple test program.
It fails with the following output:
Change Dir: /Users/marcusjensen/Library/Caches/CLion2016.2/cmake/generated/untitled1-acdabcc9/acdabcc9/Debug/CMakeFiles/CMakeTmp
Run Build Command:"/usr/bin/make" "cmTC_188fb/fast"
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
CMake will not be able to correctly generate this project.

Error:Configuration Release
The C compiler "/usr/bin/cc" is not able to compile a simple test program.
It fails with the following output:
Change Dir: /Users/marcusjensen/Library/Caches/CLion2016.2/cmake/generated/untitled1-acdabcc9/acdabcc9/Release/CMakeFiles/CMakeTmp
Run Build Command:"/usr/bin/make" "cmTC_d6d8f/fast"
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
CMake will not be able to correctly generate this project.

Error:Configuration RelWithDebInfo
The C compiler "/usr/bin/cc" is not able to compile a simple test program.
It fails with the following output:
Change Dir: /Users/marcusjensen/Library/Caches/CLion2016.2/cmake/generated/untitled1-acdabcc9/acdabcc9/RelWithDebInfo/CMakeFiles/CMakeTmp
Run Build Command:"/usr/bin/make" "cmTC_58cc1/fast"
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
CMake will not be able to correctly generate this project.

Error:Configuration MinSizeRel
The C compiler "/usr/bin/cc" is not able to compile a simple test program.
It fails with the following output:
Change Dir: /Users/marcusjensen/Library/Caches/CLion2016.2/cmake/generated/untitled1-acdabcc9/acdabcc9/MinSizeRel/CMakeFiles/CMakeTmp
Run Build Command:"/usr/bin/make" "cmTC_13fa0/fast"
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
CMake will not be able to correctly generate this project.

1 comment
Comment actions Permalink

Hi Marcus.

Sorry for the delay. Please try using the following command in terminal:

xcode-select --install
0

Please sign in to leave a comment.