Tuesday, June 6, 2023

Install CMAKE on centos 7

 yum remove cmake

wget https://github.com/Kitware/CMake/releases/download/v3.13.4/cmake-3.13.4.tar.gz
tar zxvf cmake-3.13.4.tar.gz
cd cmake-3.13.4
sudo ./bootstrap --prefix=/usr/local
sudo make
sudo make install
vi ~/.bash_profile

    ...
    # PATH=$PATH:$HOME/bin
    PATH=/usr/local/bin:$PATH:$HOME/bin
    export PATH

source ~/.bash_profile
cmake --version

No comments:

Post a Comment

Reset Ubuntu with factory reset & and reinstall

  Try configuring unconfigured packages: sudo dpkg --configure -a Update the contents of the repositories sudo apt-get update Try to fix mis...