Ubuntu14.04安装CMake3.4.1
2015-12-05 16:20
323 查看
由于Ubuntu14.04的cmake版本为2.8.x,而如果需要cmake3.x版本时,无法生成makefile,有两种方法可以安装cmake3.4.1:
方法1:
最后在终端输入:cmake --version
如果显示cmake version 3.4.1
则安装成功!
方法1:
sudo apt-get install software-properties-common sudo add-apt-repository ppa:george-edison55/cmake-3.x sudo apt-get update sudo apt-get install cmake sudo apt-get upgrade 方法2:
sudo apt-get install build-essential wget http://www.cmake.org/files/v3.4/cmake-3.4.1.tar.gz tar xf cmake-3.4.1.tar.gz cd cmake-3.4.1 ./configure make
sudo apt-get install checkinstall sudo checkinstall
sudo make install
最后在终端输入:cmake --version
如果显示cmake version 3.4.1
则安装成功!
相关文章推荐
- Single Number III & 数组中只出现一次的数字
- 黑马程序员--java基础之类与对象
- AES算法 Java实现
- 基于webmagic的爬虫项目经验小结
- 12月5日笔记
- 一亿以内素数超优算法
- 下载附件文件名乱码问题
- LIBSVM使用介绍
- 图像预处理与特征提取(1)——白化处理和直方图均衡化
- Linux驱动程序中的platform总线详解
- POJ 1337
- 杭电ACM2501——Tiling_easy version
- 第二章 使用SQLite数据库
- 热带水果的收藏(三亚)
- iOS开发——监听耳机状态(是否插入)
- matlab之reshape函数
- P53 T2
- HDOJ--2674--N!Again
- Linux系统分区建议
- linux xargs命令的使用及其与exec、管道的区别