cmake
config_error
ai_generated
true
CMake Error: No CMAKE_CXX_COMPILER could be found
ID: cmake/compiler-not-found
85%Fix Rate
88%Confidence
3Evidence
2023-01-01First Seen
Version Compatibility
| Version | Status | Introduced | Deprecated | Notes |
|---|---|---|---|---|
| 3 | active | — | — | — |
Root Cause
C/C++ compiler not installed or not in PATH.
genericWorkarounds
-
92% success Install build-essential (Debian) or gcc/g++ (RHEL)
apt-get install build-essential
-
88% success Set CC/CXX environment variables if non-standard compiler location
Dead Ends
Common approaches that don't work:
-
Set CMAKE_CXX_COMPILER to wrong path
85% fail
Build fails with different error
-
Install random compiler version
72% fail
ABI incompatibility with dependencies