赞
踩
cmake编译时出现错误:Could not find CMAKE_ROOT !!! CMake has most likely not been installed correctly.
看到有朋友反馈会卸载掉好多东西,确实后来我也使用过
autoremove的方式卸载软件,确实卸载了我好多其他的软件依赖,所以慎用,卸软件用remove或者purge吧,哈哈!!
查了一下有好多博主用的方式是清除缓存的方式解决这个问题hash -r
- 1
references:https://blog.csdn.net/weixin_45467056/article/details/107995400
简单粗暴,卸载重装,哈哈哈
sudo apt-get autoremove cmake
./configure --prefix=/usr
sudo make -j4 #参数可选,根据自己设备配置选择数字可加速编译过程
sudo make install
cmake下载地址:
cmake官网下载地址
官方网址各版本下载地址
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。