Skip to content

Instantly share code, notes, and snippets.

@UbuntuEvangelist
Last active April 26, 2024 21:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save UbuntuEvangelist/afd13e6fba7ffc5dbf7c5da31b55dff6 to your computer and use it in GitHub Desktop.
Save UbuntuEvangelist/afd13e6fba7ffc5dbf7c5da31b55dff6 to your computer and use it in GitHub Desktop.
Install CMake 3.22 Ubuntu 22.04
sudo apt update
sudo apt install build-essential
sudo apt install libssl-dev
export OPENSSL_ROOT_DIR=/usr/include/openssl
wget https://cmake.org/files/v3.29/cmake-3.29.2.tar.gz
tar -xzvf cmake-3.29.2.tar.gz
cd cmake-3.29.2
./bootstrap
make -j$(nproc)
sudo make install
# Update PATH Environment Variable
which cmake
/usr/local/bin/cmake
export PATH=/usr/local/bin/cmake:$PATH
source ~/.bashrc
cmake --version
@UbuntuEvangelist
Copy link
Author

Screenshot from 2024-04-24 01-38-53

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment