ubuntu安装最新cmak时候出现以下错误
root@linux:/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
root@linux:/home/root/cmake-3.17.2# cmake --version
cmake version 3.17.2