Ubuntu14.04安裝CMake3.0.2
阿新 • • 發佈:2018-12-31
1、去網址下載http://www.cmake.org/download/
2、把cmake-3.0.2.tar.gz放到想放到的目錄(Cmake的安裝路徑預設在:/usr/local/中),然後解壓,解壓命令
Platform | Files |
Unix/Linux Source (has \n line feeds) |
3、進入cmake-3.0.2 進入命令 cd cmake-3.0.2
4、執行 sudo ./bootstrap
如果出現如下錯誤提示
Error when bootstrapping CMake Cannot find appropriate C++ compiler on this system Please specify one using environment variable CXX…
則執行
sudo apt-get install build-essential
安裝gcc-c++,然後再從新執行步驟4
5、執行sudo make
6、執行 sudo make install
7、執行 cmake --version
如果輸出
cmake version 3.0.2
CMake suite maintained and supported by Kitware (kitware.com/cmake).
則證明安裝成功