Last active
July 17, 2024 07:12
-
-
Save sergio-gimenez/b17b3ff894366627dbf3cb9682d0c3d2 to your computer and use it in GitHub Desktop.
Install last CMake version in Ubuntu (16)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # CMake developer team in Kitware Inc provides APT repositiory. It allows you to install latest CMake via apt-get. | |
| #If you are using a minimal Ubuntu image or a Docker image, you may need to install the following packages: | |
| sudo apt-get update | |
| sudo apt-get install apt-transport-https ca-certificates gnupg \ | |
| software-properties-common wget | |
| # Obtain a copy of our signing key: | |
| wget -qO - https://apt.kitware.com/keys/kitware-archive-latest.asc | sudo apt-key add - | |
| #Add the repository to your sources list and update. | |
| #For Ubuntu Bionic Beaver (18.04): | |
| #sudo apt-add-repository 'deb https://apt.kitware.com/ubuntu/ bionic main' | |
| #sudo apt-get update | |
| #For Ubuntu Xenial Xerus (16.04): | |
| sudo apt-add-repository 'deb https://apt.kitware.com/ubuntu/ xenial main' | |
| sudo apt-get update | |
| #Now call | |
| sudo apt-get install cmake | |
| # Reference: https://stackoverflow.com/questions/49859457/how-to-reinstall-the-latest-cmake-version |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment