CMake 运行错误 could not find CMAKE_ROOT

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/lingdi2000/article/details/51866222

错误的提示:

CMake Error: Could not find CMAKE_ROOT !!!

CMake has most likely not been installed correctly.
Modules directory not found in
/usr/bin

段错误 (核心已转储)


具体原因不知道为什么,看网上的资料:

升级完CMake后,文件位置改变了(在/usr/local/bin目录下找不到cmake了)

cmake的时候,输入全路径应该就可以了


但是我是新手 。。。表示不懂怎么找出全路径,所以决定重新安装:

sudo apt-get remove cmake cmake-data 卸载 cmake-data包的东西一起删掉
sudo -E add-apt-repository -y ppa:george-edison55/cmake-3.x(ppa 源中的版本修改)
sudo -E apt-get update
sudo apt-get install cmake
然后就 更新到了 3.2.2的版本,不知道 路过的你是否有帮助


猜你喜欢

转载自blog.csdn.net/lingdi2000/article/details/51866222
今日推荐