cmake 3.2.2 Ubuntu 14.04でのインストール

1184 ワード

参考:http://askubuntu.com/questions/610291/how-to-install-cmake-3-2-on-ubuntu-14-04
腫萼萼芰葃芰芫芫芫菶荎荎荎?萼葃33859;33859;33751;33754;芫菶菵33781;33751;菺
1.関連ソフトウェアがインストールされているかどうかを判断する
sudo apt-get install build-essential
2.前のバージョンのcmakeを削除する(もしあれば)
sudo apt-get autoremove cmake
3.cmake 3.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.cmake 3.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