0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

cmakeをアップデートしよう

Posted at

cmakeのアップデート

Ubuntuの最新版ではそこまで気にすることではないのかもしれませんが、もしものためにcmakeの更新方法を挙げておきます。

①パッケージのダウンロード

ソフトウェアを保存しておくディレクトリを作っておくとよいです。

mkdir -p $HOME/Important_Software/ && cd $HOME/Important_Software/

パッケージをダウンロード。

wget https://github.com/Kitware/CMake/releases/download/v3.30.4/cmake-3.30.4.tar.gz
#解凍・パッケージ削除
tar zxvf cmake-3.30.4.tar.gz && rm cmake-3.30.4.tar.gz

②cmakeのインストール

ビルド

cd cmake-3.30.4/
./bootstrap
make
#パスを通す
echo 'export PATH=$HOME/Important_Software/cmake-3.17.1/bin/:$PATH' >> ~/.bashrc
source ~/.bashrc

③cmakeのバージョン確認

cmake --version
#cmake version 3.22.1

#CMake suite maintained and supported by Kitware (kitware.com/cmake).

以上です。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?