[Check_mk (english)] OMD rrdcached won't start

Hello – I decided to try the OMD route. The packaging does seem improved and much easier to navigate but I still find that I’m going down a rabbit’s hole of random
dependency errors. Specifically I get the following on my newly built RHEL 7.3 machine with OMD version 1.2.8p20.cre:

Starting rrdcached…/omd/sites/test/bin/rrdcached: error while loading shared libraries: libpcre.so.0: cannot open shared object file: No such file or directory

I can verify that this host doesn’t have libpcre.so.0 (I did a find from /) but it does have later versions:

ldd /opt/omd/sites/test/bin/rrdcached

linux-vdso.so.1 => (0x00007fffbb39c000)

libgthread-2.0.so.0 => /lib64/libgthread-2.0.so.0 (0x00007f368eb90000)

librrd_th.so.4 => /omd/versions/1.2.8p20.cre/lib/librrd_th.so.4 (0x00007f368e93c000)

libpng12.so.0 => /lib64/libpng12.so.0 (0x00007f368e715000)

libpcre.so.0 => not found

libpcre.so.1 => /lib64/libpcre.so.1 (0x00007f3687379000)

From what I could find out, libpcre.so.0 shipped with version 6 which is so old I cannot find it on the pcre website to download.

Has anyone seen this or have any ideas about how to address it?

Regards,

  • Asher

Symbolic links are your friend. Simply create a symbolic link for the major version number you need to the major version reference, or the fully qualified name of the library you have.

libraries major version number, but they often do not create links for the .so file; so when you build executables the executable is dependent upon the more specific reference of the library. In this case, the .so.1 reference. Had both RHEL6 and RHEL7 had
.so references, there wouldn’t be this issue.

···

From: checkmk-en [mailto:checkmk-en-bounces@lists.mathias-kettner.de]
On Behalf Of Asher Danburg
Sent: Wednesday, April 12, 2017 5:18 PM
To: checkmk-en@lists.mathias-kettner.de
Subject: [Check_mk (english)] OMD rrdcached won’t start

Hello – I decided to try the OMD route. The packaging does seem improved and much easier to navigate but I still find that I’m going down a rabbit’s hole of random
dependency errors. Specifically I get the following on my newly built RHEL 7.3 machine with OMD version 1.2.8p20.cre:

Starting rrdcached…/omd/sites/test/bin/rrdcached: error while loading shared libraries: libpcre.so.0: cannot open shared object file: No such file or directory

I can verify that this host doesn’t have libpcre.so.0 (I did a find from /) but it does have later versions:

ldd /opt/omd/sites/test/bin/rrdcached

linux-vdso.so.1 => (0x00007fffbb39c000)

libgthread-2.0.so.0 => /lib64/libgthread-2.0.so.0 (0x00007f368eb90000)

librrd_th.so.4 => /omd/versions/1.2.8p20.cre/lib/librrd_th.so.4 (0x00007f368e93c000)

libpng12.so.0 => /lib64/libpng12.so.0 (0x00007f368e715000)

libpcre.so.0 => not found

libpcre.so.1 => /lib64/libpcre.so.1 (0x00007f3687379000)

From what I could find out, libpcre.so.0 shipped with version 6 which is so old I cannot find it on the pcre website to download.

Has anyone seen this or have any ideas about how to address it?

Regards,

  • Asher