首页 > 系统服务 > 详细

ubuntu 系统升级 cmake

时间:2017-08-23 13:17:50      阅读:295      评论:0      收藏:0      [点我收藏+]

由于Ubuntu14.04的cmake版本为2.8.x,而如果需要cmake3.x版本时,无法生成makefile,有两种方法可以安装cmake3.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

则安装成功!

ubuntu 系统升级 cmake

原文:http://www.cnblogs.com/wanghuixi/p/7417287.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!