我很惊讶这给了我多少麻烦.
我有一台RHEL 7机器我正在尝试安装syslog-ng.我添加了EPEL存储库,我得到以下输出:
# yum install syslog-ng.x86_64 --enablerepo=epel syslog-ng Loaded plugins: amazon-id,rhui-lb,search-disabled-repos Resolving Dependencies --> Running transaction check ---> Package syslog-ng.x86_64 0:3.5.6-3.el7 will be installed --> Processing Dependency: ivykis >= 0.36.1 for package: syslog-ng-3.5.6-3.el7.x86_64 --> Processing Dependency: libivykis.so.0(IVYKIS_0.30)(64bit) for package: syslog-ng-3.5.6-3.el7.x86_64 --> Processing Dependency: libivykis.so.0(IVYKIS_0.29)(64bit) for package: syslog-ng-3.5.6-3.el7.x86_64 --> Processing Dependency: libnet.so.1()(64bit) for package: syslog-ng-3.5.6-3.el7.x86_64 --> Processing Dependency: libivykis.so.0()(64bit) for package: syslog-ng-3.5.6-3.el7.x86_64 --> Processing Dependency: libevtlog.so.0()(64bit) for package: syslog-ng-3.5.6-3.el7.x86_64 --> Running transaction check ---> Package eventlog.x86_64 0:0.2.13-4.el7 will be installed ---> Package ivykis.x86_64 0:0.36.2-2.el7 will be installed ---> Package syslog-ng.x86_64 0:3.5.6-3.el7 will be installed --> Processing Dependency: libnet.so.1()(64bit) for package: syslog-ng-3.5.6-3.el7.x86_64 --> Finished Dependency Resolution Error: Package: syslog-ng-3.5.6-3.el7.x86_64 (dl.fedoraproject.org_pub_epel_7_x86_64_) Requires: libnet.so.1()(64bit) You could try using --skip-broken to work around the problem You could try running: rpm -Va --nofiles --nodigest
正如您所看到的,它在libnet.so.1上失败了.我环顾四周,除了RedHat bug追踪器上的一些非常旧的门票,我还没有找到任何关于此的信息.我在RedHat存储库中找不到这个,包括EPEL和Fedora.我该如何解决这个问题?再一次,我很惊讶syslog-ng在Red Hat中安装太尴尬了,所以我想知道我做错了什么.
谢谢.
解决方法@H_502_12@
您需要确保已启用RHEL可选通道. EPEL的许多包装都需要它.
process to do this on EC2与
normal process不同.
使用yum-config-manager以简单的方式完成:
yum-config-manager --enable rhui-REGION-rhel-server-extras rhui-REGION-rhel-server-optional
或者老式的手动方式:编辑/etc/yum.repos.d/redhat.repo以确保启用这些回购.
使用yum-config-manager以简单的方式完成:
yum-config-manager --enable rhui-REGION-rhel-server-extras rhui-REGION-rhel-server-optional
或者老式的手动方式:编辑/etc/yum.repos.d/redhat.repo以确保启用这些回购.