CMake Error: Could not find CMAKE_ROOT !!!

引用https://www.cnblogs.com/blackay03/p/9062503.html

源码安装的cmake,升级之后报错啦
因为不在usr/local/share 目录中了,手动删除目录之后还是不行,百度一番之后

CMake Error: Could not find CMAKE_ROOT !!!
CMake has most likely not been installed correctly.
Modules directory not found in
/usr/local/bin

找到cmake 目录下的install_manifest.txt 文件,集中删除里面的内容即可。
cat install_manifest.txt | sudo xargs rm

你可能感兴趣的:(CMake Error: Could not find CMAKE_ROOT !!!)