在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 dev 包而不是常规包,下面是命令:
sudo apt install -y libzstd-dev
第二个错误的矮人开发包的解决方案:
sudo apt install libdwarf-dev