Cmake出现CMake Error: Could not find CMAKE_ROOT !!!

CMake Error: Could not find CMAKE_ROOT !!! cmake安装会,不能运行,出现错误。通常出现的原因是,cmake 命令本来存在,然后进行了安装。 类似于缓存导致失败的一样。

"CMake Error: Could not find CMAKE_ROOT !!!" 的解决方法(hash -r )

hash -r

cmake --version

CMake Error: Could not find CMAKE_ROOT !!!

CMake has most likely not been installed correctly.

Modules directory not found in

/usr/local/bin

Segmentation fault

hash -r 的帮助文档

       hash [-lr] [-p filename] [-dt] [name]
              Each time hash is invoked, the full pathname of the command name is determined by searching the directories in $PATH and remembered.  Any previously-remembered pathname is
              discarded.  If the -p option is supplied, no path search is performed, and filename is used as the full file name of the command.  The -r option causes the shell to forget
              all remembered locations.  The -d option causes the shell to forget the remembered location of each name.  If the -t option is supplied, the full pathname  to  which  each
              name corresponds is printed.  If multiple name arguments are supplied with -t, the name is printed before the hashed full pathname.  The -l option causes output to be dis‐
              played in a format that may be reused as input.  If no arguments are given, or if only -l is supplied, information about remembered commands is printed.  The return status
              is true unless a name is not found or an invalid option is supplied.
  • 9
    点赞
  • 9
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值