[Solved] Cmake: symbol lookup error: cmake: undefined symbol: archive_write_add_filter_zstd

centOS8(x86_ Cmake-3.18.2-11.el8, which is installed by default in Yum or DNF, cannot be used after installation   cmake: symbol lookup error: cmake: undefined symbol: archive_ write_ add_ filter_ Zstd error.

There are two solutions to this error:

The first one is

Install libarchive

dnf install   libarchive   Or Yum install   libarchive

Second: install a lower or higher version of cmake

1. Uninstall cmake program
Yum remove cmake   or   RPM – e cmake
2. Re install cmake,
website: https://cmake.org/download/
3. Create a soft connection
ln – S  /xx-path/cmake    / usr/bin/cmake

Read More: