【已解决】CMake Error: Could not find CMAKE

    科技2024-05-21  85

    问题描述:root@4d42a166eecc:/home/CMake# cmake --version CMake Error: Could not find CMAKE_ROOT !!! CMake has most likely not been installed correctly. Modules directory not found in /usr/local/share/cmake-3.10 cmake version 3.10.2 CMake suite maintained and supported by Kitware (kitware.com/cmake). 解决方案: 清除缓存:hash -r
    Processed: 0.011, SQL: 9