cmake :command not found

来源:互联网 发布:达内培训 件编程软件 编辑:程序博客网 时间:2024/06/16 05:32

今天安装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软件编译就没有错误提示了。

原创粉丝点击