Назад | Перейти на главную страницу

redhat 6 | как установить libpcap-devel

сервер работает:

# cat /proc/version 
Linux version 2.6.32-431.el6.x86_64 (mockbuild@x86-023.build.eng.bos.redhat.com) (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 но у меня нет доступа ..

Не могли бы вы посоветовать, как это решить?

Излагая ответ Майкла:

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

libpcap-devel находится в дополнительном канале RHEL, который вам нужно включить в вашей системе.

А если у вас нет доступа к документации RHEL, вам нужно поговорить с тем, кто за это отвечает в вашей компании, чтобы авторизовать доступ к вашей учетной записи Red Hat.