Make and CMake Install

Install Make

Install build essentials and Make first:

sudo apt-get install make
sudo apt-get update && sudo apt-get install build-essential

Install CMake

Download the latest version of the CMake executable.

In your linux shell run (replacing VERSION with the version you downloaded):

VERSION=4.1.1
cd ~/Downloads
chmod +x cmake-$VERSION-linux-x86_64.sh
sudo ./cmake-$VERSION-linux-x86_64.sh
sudo mv cmake-$VERSION-linux-x86_64 ~/bin/cmake

Then add the following line to your .basrc or .zshrc, replacing the path with the path to cmake install on your system:

export PATH=$PATH:$HOME/bin/cmake/bin
Next
Previous

Related