cmake :command not found

古城微笑少年丶 2022-05-14 17:38 1445阅读 0赞

今天安装cmake 完成之后, 使用时遇到一个问题:command not found

很奇怪,cmake已经安装了,为什么会有这个提示,查找internet发现:

1.9.3 has a dependency on cmake. If you aren’t root on the box you can download cmake from http://www.cmake.org/, configure and install it using —prefix=~/cmake/ then export PATH=~/cmake/bin/:$PATH to install cmake in your home directory and use it to configure Anope.

我把cmake 安装在了/opt/下也就是/opt/cmake

按照提示需要在终端执行 命令:export PATH=/opt/cmake/bin:$PATH

OK,再执行cmake软件编译就没有错误提示了。

发表评论

表情:
评论列表 (有 0 条评论,1445人围观)

还没有评论,来说两句吧...

相关阅读

    相关 yum: command not found

    1、在操作的时候把yum给卸载了,百度了几篇感觉各种情况都有,但是都没能解决问题。 2、各种查找资料然后总结如下: [下载yum相关的rpm包][yum_rpm] 分别