cmake安裝方法


由於Ubuntu14.04的cmake版本為2.8.x,而如果需要cmake3.x版本時,無法生成makefile,有兩種方法可以安裝cmake3.10.0:

方法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

則安裝成功!


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM