"bfd library not found" 配置 Oprofile 时出错

"bfd library not found" error when configuring Oprofile

我下载了 oprofile zip,然后将其解压缩。然后使用命令

./configure --prefix=/home/eranga/Software/oprofile-1.1.0

我尝试安装它。以下是最后的控制台消息。

checking for bfd_openr in -lbfd... no
checking for compress in -lz... yes
checking for bfd_fdopenr in -lbfd... no
configure: error: bfd library not found

任何人都可以建议发生这种情况的原因和解决方案。 提前致谢

你好像少了一个图书馆。此命令为我安装 bfd 库:

sudo apt-get install binutils-dev