1. 程式人生 > >cmake3.2.2 在Ubuntu14.04下的安裝

cmake3.2.2 在Ubuntu14.04下的安裝

########################################################3

1.判斷相關軟體是否安裝

sudo apt-get install build-essential

2.刪除先前版本的cmake(如果有的話)
sudo apt-get autoremove cmake

3.下載cmake3.2.2原始碼
wget http://www.cmake.org/files/v3.2/cmake-3.2.2.tar.gz

4.解壓
tar zxvf cmake3.2.2.tar.gz

5.進入cmake3.2.2資料夾,安裝
cd cmake3.2.2
./configure
make
sudo make install

6.設定環境變數
sudo gedit /etc/profile

在/etc/profile末尾加上對應的路徑
export PATH=cmake路徑/bin:$PATH

7.儲存,更新環境變數
source /etc/profile

8.確認
cmake --version