源码安装cmake(或者叫升级cmake)
2016-04-18 14:28
344 查看
cmake source install as follows:
0 cd ~
1 wget https://cmake.org/files/v3.5/cmake-3.5.2.tar.gz
2 tar xvf cmake-3.5.2.tar.gz
This worked for me then:
3 cd cmake-3.4.3
4 ./bootstrap --prefix=/usr
这一步很关键,如果没有指定prefix,后面使用时会报错Could not find CMAKE_ROOT
5 make
6 sudo make install
check:
cmake --version
[root@localhost cmake-3.5.2]# cmake --version
cmake version 3.5.2
CMake suite maintained and supported by Kitware (kitware.com/cmake).
0 cd ~
1 wget https://cmake.org/files/v3.5/cmake-3.5.2.tar.gz
2 tar xvf cmake-3.5.2.tar.gz
This worked for me then:
3 cd cmake-3.4.3
4 ./bootstrap --prefix=/usr
这一步很关键,如果没有指定prefix,后面使用时会报错Could not find CMAKE_ROOT
5 make
6 sudo make install
check:
cmake --version
[root@localhost cmake-3.5.2]# cmake --version
cmake version 3.5.2
CMake suite maintained and supported by Kitware (kitware.com/cmake).
相关文章推荐
- 大数据下BI产品如何发挥最大价值
- 评估后Vista时代系统内核模式安全性
- Hadoop集群测试
- 上传类
- flex平分测试
- Sublime text设置文件
- OpenCV2.4.10之samples_cpp_tutorial-code_learn------安装配置与第一个Opencv程序
- 根据werservice代码用CXF生成WSDL
- BFS与DFS
- js将格式化后的时间拼接成字符串
- Android 自定义PopupWindow动画效果
- C+类的sizeof大小以及类的字节对齐
- shell的wc命令统计 head tail命令详解
- 构造器内部的多态方法的行为
- 设计模式学习---(2)
- MFC ComboBox的使用
- Android实现手写签名
- 解压*UC*.rar文件,压缩文件夹命令
- 没事看看
- Android通过注解初始化View