Fixing ‘cmake: symbol lookup error: cmake: undefined symbol: archive_write_add_filter_zst’

I get the following when I was building my application for CentOS-8. I think it is specific to CentOS-8.

$ cmake -DCMAKE_BUILD_TYPE=Release .. && make

cmake: symbol lookup error: cmake: undefined symbol: archive_write_add_filter_zstd

It turns out that installing cmake does not update its dependencies properly. You have to update libarchive manually.

$ sudo yum install -y cmake libarchive

And thats it.


Leave a Reply