1.check installed cmake version

1
cmake -version

2.create a new dir and enter it

1
2
3
mkdir /opt/cmake

cd /opt/cmake/

3.get install package

1
wget https://cmake.org/files/v3.26/cmake-3.26.4.tar.gz

4.decompression

1
tar -xzvf cmake-3.26.4.tar.gz

5.enter cmake-3.26.4 folder

1
cd cmake-3.26.4

6.configure install path

1
./configure --prefix=/usr/local/cmake

7.install cmake

1
make && make install
1
ln -s /usr/local/cmake/bin/cmake /usr/bin/cmake

Comments

2024-08-01

⬆︎TOP