# cmake ## See also [[Eutykhia Deploy#Neovim]] ## Install from source ### Installation on [[CentOS]] / [[Amazon Linux]] ```bash # Install cmake 3.10+, yum version 2.8.x is insufficient for neovim sudo yum remove cmake # sudo yum install gcc-c++ # Required for cmake sudo yum install openssl-devel # Required for cmake ( cd "$(mktemp -d)" wget https://cmake.org/files/v3.21/cmake-3.21.3.tar.gz tar -xvzf cmake-3.21.3.tar.gz cd cmake-3.21.3 ./bootstrap make sudo make install ) # Check that it's installed correctly, may need to refresh shell cmake --version ``` ### [Install latest cmake from source on Ubuntu 20.04](https://www.linuxcapable.com/install-cmake-on-ubuntu-20-04-lts/) Ubuntu apt comes with cmake 3.16.3, which is sometimes insufficient ```bash # Install prerequisites sudo apt install build-essential checkinstall zlib1g-dev libssl-dev -y # Check version, should be the old version cmake -version > cmake version 3.16.3 # Visit cmake's Github releases page at: # https://github.com/Kitware/CMake/releases # Copy the file link for the tar.gz of the latest non-rc version # e.g. https://github.com/Kitware/CMake/releases/download/v3.22.3/cmake-3.22.3.tar.gz ( # Download the archive using wget wget https://github.com/Kitware/CMake/releases/download/v3.22.3/cmake-3.22.3.tar.gz # Extract tar -zxvf cmake-3.22.3.tar.gz # Go into the extracted directory cd cmake-3.22.3 # Bootstrap sudo ./bootstrap # Make sudo make # Install sudo make install ) # Check version cmake -version > cmake version 3.22.3 ```