赞
踩
环境:CentOS 7
今天按照教程在服务器上装好Cmake之后,查看版本 cmake --version提示错误:
CMake Error: Could not find CMAKE_ROOT !!!
CMake has most likely not been installed correctly.
Modules directory not found in
/usr/local/share/cmake-3.24
cmake version 3.24.1
找了各种方法,包括什么 hash -r 卸载重装都没用,最后直接改掉/usr/local/share/cmake-3.24的权限, sudo chmod 777 /usr/local/share/cmake-3.24,就可以了
赞
踩
赞
踩
赞
踩
赞
踩
赞
踩
赞
踩
赞
踩
赞
踩
赞
踩
赞
踩
赞
踩
赞
踩
赞
踩
赞
踩
赞
踩
赞
踩
赞
踩
赞
踩
赞
踩
赞
踩
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。