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
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)