主机评测
专注主机评测和优惠码发布
CentOS 8上面自带的cmake 3有bug,会报cmake: symbol lookup error: cmake: undefined symbol: archive_write_add_filter_zstd错误,导致无法使用cmake进行编译安装MySQL等,其他CentOS同系Oracle Linux等之类的发行版也有存在这个问题的。
cmake --version
uname -m
cd /usr/local/
wget https://github.com/Kitware/CMake/releases/download/v3.30.0/cmake-3.30.0-linux-$(uname -m).tar.gz
tar zxf cmake-3.30.0-linux-$(uname -m).tar.gz
mv cmake-3.30.0-linux-$(uname -m) cmake
mv /usr/bin/cmake /usr/bin/cmake.backup
ln -sf /usr/local/cmake/bin/cmake /usr/bin/cmake
升级完成,再次执行cmake --version 查看cmake版本号。