-- The C compiler identification is unknown -- The CXX compiler identification is unknown

/home/miranda/Descargas/clion-2019.2/bin/cmake/linux/bin/cmake -DCMAKE_BUILD_TYPE=Debug -G "CodeBlocks - Unix Makefiles" /home/miranda/CLionProjects/untitled2
-- The C compiler identification is unknown
-- The CXX compiler identification is unknown
CMake Error at CMakeLists.txt:2 (project):
No CMAKE_C_COMPILER could be found.

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):
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/miranda/CLionProjects/untitled2/cmake-build-debug/CMakeFiles/CMakeOutput.log".
See also "/home/miranda/CLionProjects/untitled2/cmake-build-debug/CMakeFiles/CMakeError.log".

[Failed to reload]

0
6 comments

Hi!

Do you have GCC/G++ or Clang installed on the machine?

0
Avatar
Permanently deleted user

Hello, 

 

I have Clang installed, as far as I can tell, and I set the toolchain values in CLion. I still have this error. Do you have any clues?

 

Thank you,

Joseph

0

Hi Joseph!

On what OS do you use CLion?

0
Avatar
Permanently deleted user

Hello,

I actually fixed my problem. It involved adding a leading "/" to path names and agreeing to a license agreement in a certain place. Thank you.

0

Hi im currently experiencing this problem. Just happened after I updated CLion 

0

Hi Redus342!

  1. On what OS do you use CLion? 
  2. Please provide the entire text of the error message.
  3. Provide a screenshot of `File | Settings | Build, Execution, Deployment | Toolchains` (please capture the screenshot after the compiler detection is completed).
0

Please sign in to leave a comment.