Ubuntu14.04下 升级 cmake
参考:
How to install cmake 3.2 on ubuntu 14.04?
Ubuntu14.04下升级cmake
1.通过PPA安装:
$ sudo apt-get install software-properties-common
$ sudo add-apt-repository ppa:george-edison55/cmake-3.x
$ sudo apt-get update
还未安装cmake:
$ sudo apt-get install cmake
安装过cmake:
$ sudo apt-get upgrade
2.通过下载安装包自己安装,从这里获取安装包: Downloads,这里安装3.2.2版本。
$ sudo apt-get install build-essential
$ wget http://www.cmake.org/files/v3.2/cmake-3.2.2.tar.gz
$ tar xf cmake-3.2.2.tar.gz
$ cd cmake-3.2.2
$ ./configure
$ make
接着可以通过checkinstall 安装:
$ sudo apt-get install checkinstall
$ sudo checkinstall
也可以通过make install安装:
$ sudo make install
2017.9
To improve is to change, to be perfect is to change often.