Package libelf was not found in the pkg-config search path解决方法

编译报错

Package libelf was not found in the pkg-config search path.
Perhaps you should add the directory containing `libelf.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libelf' found
Package zlib was not found in the pkg-config search path.
Perhaps you should add the directory containing `zlib.pc'
to the PKG_CONFIG_PATH environment variable
No package 'zlib' found

解决方法

yum install -y elfutils-libelf-devel

或者

dnf install -y elfutils-libelf-devel

猜你喜欢

转载自blog.csdn.net/weixin_45184581/article/details/130941542