-
Notifications
You must be signed in to change notification settings - Fork 16
Cmake update and install
alberto edited this page May 12, 2023
·
9 revisions
Xmipp requires a Cmake version 3.16 or above.
If you have not installed cmake please
sudo apt-get install -y cmake cmake-data
If you have an older version, to install the newest:
sudo apt remove -y cmake cmake-datahash -rsudo apt-get install -y cmake cmake-datahash -r
To uninstall cmake
- Go to the cmake directory (
cd / && find . -type d -name "*cmake*") sudo make uninstallcd .. && rm -rf path/to/cmake
To install cmake
wget https://github.com/Kitware/CMake/releases/download/v3.17.3/cmake-3.17.3.tar.gztar -zxvf cmake-3.17.3.tar.gzcd cmake-3.17.3./bootstrapmakesudo make install- Verify the installed version by typing
sudo --version
To update gcc from v7
sudo apt-get remove gcc-7sudo apt-get install gcc-8sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-8 800 --slave /usr/bin/g++ g++ /usr/bin/g++-8
To Update Cmake
-
wget -O - https://apt.kitware.com/keys/kitware-archive-latest.asc 2>/dev/null | sudo apt-key add - -
sudo apt-add-repository 'deb https://apt.kitware.com/ubuntu/ bionic main' -
sudo apt-get update
Developed by xmipp team