Install syslog-ng on RHEL 7

Peter asked:

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.

My answer:


You need to make sure you have the RHEL optional channel enabled. 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.


View the full question and answer on Server Fault.

Creative Commons License
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.