找不到 ZSTD(缺少:ZSTD_LIBRARY ZSTD_INCLUDE_DIR)

Could NOT find ZSTD (missing: ZSTD_LIBRARY ZSTD_INCLUDE_DIR)

我在 heaptrack/build

运行 cmake -DCMAKE_BUILD_TYPE=Release .. 时使用 CMake 安装 headptrack 时遇到问题
-- Could NOT find ZSTD (missing: ZSTD_LIBRARY ZSTD_INCLUDE_DIR) 
CMake Error at 3rdparty/libbacktrace/CMakeLists.txt:160 (message):
  Could not find dwarf.h, try installing the dwarf or elfutils development
  package.


-- Configuring incomplete, errors occurred!

解决方案是安装 zstd 开发包而不是常规的,这里是命令:

sudo apt install -y libzstd-dev

第二个错误的dwarf dev包解决方案:

sudo apt install libdwarf-dev