大网数据广告活动
服务器运维问答

Install syslog-ng on RHEL 7

· 52CE 我爱测

I'm very surprised at how much trouble this is giving me. I have a RHEL 7 machine I'm trying to install syslog-ng on. I added the EPEL repository, I get the following output: # yum install syslog-ng.x86_64 --enablerepo=epel syslo…

问题原文

原帖链接 · Peter · CC BY-SA 3.0

I'm very surprised at how much trouble this is giving me.

I have a RHEL 7 machine I'm trying to install syslog-ng on. I added the EPEL repository, I get the following output:

# 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

As you can see, it is failing on libnet.so.1. I've looked around, and apart from some very old tickets on the RedHat bug tracker, I haven't found any information about this. I can't find this in the RedHat repositories, including EPEL and Fedora. How do I resolve this? Again, I'm very surprised that syslog-ng is so awkward to install in Red Hat, so I am wondering if I'm doing something wrong.

Thanks.

已采纳解答

原帖链接 · Michael Hampton · CC BY-SA 3.0

You need to make sure you have the RHEL optional channel enabled. Many packages from EPEL require it. The process to do this on EC2 differs from the normal process.

Do it the easy way with yum-config-manager:

yum-config-manager --enable rhui-REGION-rhel-server-extras rhui-REGION-rhel-server-optional

Or the old-fashioned manual way: edit /etc/yum.repos.d/redhat.repo to ensure that these repos are enabled.

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Server Fault
适用范围
以原帖系统、软件版本与发布日期为准(2016-10-05)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 3.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。