At time of writing, the Debian 10 repository version of cmake is 3.13.4-1, which is too old, so the first task is to install a more recent version of cmake.
- Uninstall any version of cmake currently installed:
Code: Select all
sudo apt purge cmake
- Download cmake-3.18.1-Linux-x86_64.sh from https://cmake.org/download/
- Copy cmake-3.18.1-Linux-x86_64.sh to /usr/local
Code: Select all
sudo cp cmake-3.18.1-Linux-x86_64.sh /usr/local
- Navigate to /usr/local and set the executable permission for cmake-3.18.1-Linux-x86_64.sh
Code: Select all
cd /usr/local sudo chmod +x cmake-3.18.1-Linux-x86_64.sh
- Run the installation script:
Code: Select all
sudo sh cmake-3.18.1-Linux-x86_64.sh
- Follow the on-screen instructions. Note that:
- You must respond "Y" when asked if you accept the license agreement
- Respond "n" when prompted:
Code: Select all
By default the CMake will be installed in: "/usr/local/cmake-3.18.1-Linux-x86_64" Do you want to include the subdirectory cmake-3.18.1-Linux-x86_64? Saying no will install in: "/usr/local" [Yn]:
- Check the cmake version
Code: Select all
cmake --version