redhat 6 | 如何安装 libpcap-devel

redhat 6 | 如何安装 libpcap-devel

服务器正在运行:

# cat /proc/version 
Linux version 2.6.32-431.el6.x86_64 ([email protected]) (gcc version 4.4.7 20120313 (Red Hat 4.4.7-4) (GCC) ) #1 SMP Sun Nov 10 22:19:54 EST 2013

并且似乎libpcap-devel不可用,并且我在任何存储库中都找不到该包。

# yum search libpcap-devel
Loaded plugins: product-id, rhnplugin, search-disabled-repos, security, subscription-manager
This system is receiving updates from RHN Classic or RHN Satellite.
Repository epel is listed more than once in the configuration
Repository epel-debuginfo is listed more than once in the configuration
Warning: No matches found for: libpcap-devel
No Matches found

解决方案似乎在这里:https://access.redhat.com/solutions/57913 但我没有权限访问..

您能建议如何解决这个问题吗?

答案1

迈克尔的答案如下:

sudo yum-config-manager --enable rhel-6-server-optional-rpms
sudo yum install libpcap-devel
sudo yum-config-manager --disable rhel-6-server-optional-rpms

或者您可以编辑 /etc/yum.repos.d/redhat.repo:

[rhel-6-server-optional-rpms]
name = Red Hat Enterprise Linux 6 Server - Optional (RPMs)
baseurl = https://cdn.redhat.com/content/dist/rhel/server/6/$releasever/$basearch/optional/os
enabled = 1

答案2

libpcap-devel 在 RHEL 可选频道中,您需要使能够在您的系统上。

如果您无权访问 RHEL 文档,则需要与公司中负责该文档的人员联系,以获取您的 Red Hat 帐户的访问授权。

相关内容