bash
安装依赖工具:
sudo yum install -y epel-release
sudo yum groupinstall -y "Development Tools"
sudo yum install -y wget
bash
wget 下载 CMake 3.24 的压缩包:
wget https://github.com/Kitware/CMake/releases/download/v3.24.0/cmake-3.24.0-linux-x86_64.tar.gz
bash
解压下载:tar -zxvf cmake-3.24.0-linux-x86_64.tar.gz
bash
将解压后的 CMake 文件夹移动到 /usr/local 目录下:
sudo mv cmake-3.24.0-linux-x86_64 /usr/local/cmake
bash
将 CMake 添加到 PATH:(两句话)
echo 'export PATH=$PATH:/usr/local/cmake/bin' >> ~/.bashrc
source ~/.bashrc
bash
安装 Ninja:sudo yum install ninja-build
安装 cURL 开发包:sudo yum install libcurl-devel
安装 OpenSSL:sudo yum install openssl-devel
安装完之后,如果报错了,很可能Linux时间与本地时间不同步
查看时间:
bash
date
将时区设置为上海
bash
sudo timedatectl set-timezone Asia/Shanghai
手动设置自己的时间
bash
sudo date -s "2024-10-22 14:30:00"