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

更多推荐