centos7.9 cmake 3.27安装

下载软件包

wget https://cmake.org/files/v3.27/cmake-3.27.0-linux-x86_64.tar.gz

解压移动目录至合适位置

tar -zxvf cmake-3.27.0-linux-x86_64.tar.gz
mv cmake-3.27.0-linux-x86_64 /usr/local/cmake-3.27.0

软链接至/usr/bin

ln -s /usr/local/cmake-3.27.0/bin/cmake /usr/bin/
ln -s /usr/local/cmake-3.27.0/bin/ccmake /usr/bin/
ln -s /usr/local/cmake-3.27.0/bin/cmake-gui /usr/bin/
ln -s /usr/local/cmake-3.27.0/bin/cpack /usr/bin/
ln -s /usr/local/cmake-3.27.0/bin/ctest /usr/bin/

查看版本

cmake --verison

你可能感兴趣的:(linux,服务器,linux,运维)