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

栏目: C · 发布时间: 6年前

内容简介:CMake Error: Could not find CMAKE_ROOT !!! cmake安装会,不能运行,出现错误。通常出现的原因是,cmake 命令本来存在,然后进行了安装。 类似于缓存导致失败的一样。cmake --versionCMake 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.

以上就是本文的全部内容,希望本文的内容对大家的学习或者工作能带来一定的帮助,也希望大家多多支持 码农网

查看所有标签

猜你喜欢:

本站部分资源来源于网络,本站转载出于传递更多信息之目的,版权归原作者或者来源机构所有,如转载稿涉及版权问题,请联系我们

世界是平的

世界是平的

[美] 托马斯·弗里德曼 / 何帆、肖莹莹、郝正非 / 湖南科学技术出版社 / 2006-11 / 56.00元

当学者们讨论世界这20年发展的历史,并把目光聚集在2000年到2004年3月这一段时间时,他们将说些什么?9·11恐怖袭击还是伊拉克战争?或者,他们将讨论:科技的汇集与传播使得印度、中国和许多发展中国家成为世界商品和服务产品供给链上的一员,从而为世界大的发展中国家中的中产阶级带来了大量的财富,使这两个国家在全球化浪潮中占据更有利的位置?随着世界变得平坦,我们必须以更快的速度前进,才能在竞争中赢得胜......一起来看看 《世界是平的》 这本书的介绍吧!

图片转BASE64编码
图片转BASE64编码

在线图片转Base64编码工具

XML、JSON 在线转换
XML、JSON 在线转换

在线XML、JSON转换工具

UNIX 时间戳转换
UNIX 时间戳转换

UNIX 时间戳转换