安裝
yum install cmake
報錯
centOS8(x86_64 或 aarch64) 系統下 yum或dnf 默認安裝的 cmake-3.18.2-11.el8版本,安裝后無法使用,出現: cmake: symbol lookup error: cmake: undefined symbol: archive_write_add_filter_zstd 錯誤
第一種:
安裝 libarchive
dnf install libarchive 或者 yum install libarchive
第二種: 安裝低版本或者高版本的 cmake
1.卸載cmake程序
yum remove cmake 或 rpm -e cmake
2.重新安裝cmake,
網址:https://cmake.org/download/
3.創建軟連接
ln -s /xx-path/cmake /usr/bin/cmake