刚接触麒麟系统 开发
版本:银河麒麟桌面操作系统V10(SP1)
内核:Linux 5.4.18-28.23-bj-generic
CPU:Loongson-3A5000
终端输入 uname -m 查看
架构: loongarch64
在终端输入 cmake -v 报错如下, 图在下面:
cmake -v :
CMake Error: Could not find CMAKE_ROOT !!!
CMake has most likely not been installed correctly.
Modules directory not found in
/usr/share/cmake-3.16
CMake Error: Error executing cmake::LoadCache(). Aborting.
网上查解决办法:在终端输入 hash -r 清理哈希表 或者 重新打开终端,在我这试了都没有解决
所以决定重新装 cmake,步骤:
1、sudo apt install cmake
2、apt --fix-broken install
根据提示显示权限不够
3、sudo -i
以root 用户运行
4、apt --fix-broke