Skip to content

Instantly share code, notes, and snippets.

@mster429
Created April 22, 2021 12:12
Show Gist options
  • Save mster429/9f25b346fa7a2cda366eb99cf7b0700c to your computer and use it in GitHub Desktop.
Save mster429/9f25b346fa7a2cda366eb99cf7b0700c to your computer and use it in GitHub Desktop.
#!/bin/bash
sudo apt-get install build-essential libssl-dev
version=3.20.1
mkdir ~/temp
cd ~/temp
wget https://cmake.org/files/v$version/cmake-$version.tar.gz
tar -xzvf cmake-$version.tar.gz
cd cmake-$version/
./bootstrap
make
sudo make install
cmake --version
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment