4

运行时使用 CMake安装headptrack时遇到问题cmake -DCMAKE_BUILD_TYPE=Release ..heaptrack/build

-- 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!
4

1 回答 1

6

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

sudo apt install -y libzstd-dev

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

sudo apt install libdwarf-dev 
于 2019-11-28T16:53:53.487 回答