天天看點

CMake Error: Could not find CMAKE_ROOT !!!

ubuntu安裝最新cmak時候出現以下錯誤

[email protected]:/home/root/cmake-3.17.2# cmake --version
CMake Error: Could not find CMAKE_ROOT !!!
CMake has most likely not been installed correctly.
Modules directory not found in
/usr/local/bin
Segmentation fault (core dumped)
           

解決方法:hash -r

[email protected]:/home/root/cmake-3.17.2# cmake --version
cmake version 3.17.2
           

繼續閱讀