cmake安装
来源:互联网 发布:中兴网络机顶盒说明书 编辑:程序博客网 时间:2024/04/28 05:59
在安装caffe的过程中,碰到了cmake命令不能够使用的情况,于是,开始安装cmake
1 首先是按照教程(该网址
http://www.cnblogs.com/zhoulf/archive/2013/02/03/2890717.html
)安装的2.8.10.2,最后也出现了根据cmake—version有相应的版本号,也就是安装成功了,但是在正式使用的时候,提示我cmake命令的版本过低,需要更高的版本2.8.12以上的版本。
使用的命令有:
Wget http://www.cmake.org/files/v2.8/cmake-2.8.10.2.tar.gz
Tar –zxvf cmake-2.8.10.2.tar.gz
Rm –rf cmake-2.8.10.2.tar.gz
Cd cmake-2.8.10.2
./configure
Make
Make install
Mv cmake-2.8.10.2 make
Vi /etc/profile
PATH
2 再一次下载cmake
我通过win7从官网上https://cmake.org/download/下载了最新的版本,然后通过rz命令传输到linux上,然后继续按照上述步骤进行处理,看是出现什么情况
成功,版本号是version 3.9.3
再次放到caffe中使用,出现如下问题,按照网上的教程
(http://blog.csdn.net/u012643122/article/details/47665857)解决,还是没有解决
[root@xaver2 build]# export CXXFLAGS=”-fPIC” && cmake .. && make VERBOSE=1
CMake Error: Could not find CMAKE_ROOT !!!
CMake has most likely not been installed correctly.
Modules directory not found in
/usr/local/cmake/share/cmake-3.9
CMake Error: Error executing cmake::LoadCache(). Aborting.
[root@xaver2 build]# echo $CMAKE_ROOT
[root@xaver2 build]# export CMAKE_ROOT=/usr/local/cmake
[root@xaver2 build]# echo $CMAKE_ROOT
/usr/local/cmake
[root@xaver2 build]# export CMAKE_ROOT=/usr/local/cmake
[root@xaver2 build]# export CXXFLAGS=”-fPIC” && cmake .. && make VERBOSE=1
CMake Error: Could not find CMAKE_ROOT !!!
CMake has most likely not been installed correctly.
Modules directory not found in
/usr/local/cmake/share/cmake-3.9
CMake Error: Error executing cmake::LoadCache(). Aborting.
- 安装cmake
- 安装CMake
- cmake 安装
- 安装cmake
- cmake安装
- CMAKE安装
- cmake安装
- cmake 安装
- cmake安装
- CMake 安装
- CentOS 安装CMake
- MYSQL cmake 安装指南
- linux下安装cmake
- linux下安装cmake
- Linux下安装CMake
- cmake安装mysql源码
- linux----如何安装cmake
- CentOS-6.5安装Cmake
- 浅谈微服务
- Codeforces 863E
- Codeforces Round #437 Div. 2 E. Buy Low Sell High
- java发送邮件
- 大数据能做什么?
- cmake安装
- 数位DP小结(阶段性)
- python_lintcode_69二叉树的层次遍历
- LeetCode 24. Swap Nodes in Pairs
- 如何判断LSTM模型中的过拟合和欠拟合 By 机器之心2017年10月02日 11:09 判断长短期记忆模型在序列预测问题上是否表现良好可能是一件困难的事。也许你会得到一个不错的模型技术得分,但了解
- Matlab学习笔记(8)——hist函数
- 关于win10系统下unity3D自带编辑器中文乱码的解决方案
- java 使用Cookie实现,浏览过商品记录
- 阿里云的linux如何保持apollo不被关闭