Page 1 of 2

libltdl.so.3 cannot open shared object

Posted: Sun Jun 14, 2015 7:57 am
by h.sabrey
Hello Friends,

i'm new in nagios and linus and was successful to install CentOS 6.6 and Nagios core using step by step guides, but i faced the following problem with no reference in the internet how to solve it.

Code: Select all

[root@localhost ~]# /usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios-cfg
/usr/local/nagios/bin/nagios: error while loading shared libraries: libltdl.so.3: cannot open shared object file: No such file or directory

[root@localhost ~]#

any help or advice in regard plz

Re: libltdl.so.3 cannot open shared object

Posted: Mon Jun 15, 2015 9:35 am
by tmcdonald
Can you link to the guide you followed?

Also, there were quite a few hits for that error when I searched on Google. I found a possible solution. Try installing libtool-libs like so:

Code: Select all

yum install libtool-libs -y

Re: libltdl.so.3 cannot open shared object

Posted: Tue Jun 16, 2015 6:43 am
by h.sabrey
my guid of installation is a youtube video here https://www.youtube.com/watch?v=quRFcjiHpKI

regarding the package installaiton the following command have been executed and the result was as below

Code: Select all

[root@localhost ~]# repoquery -q -f */libltdl.so*
libtool-ltdl-0:2.2.6-15.5.el6.i686
libtool-ltdl-devel-0:2.2.6-15.5.el6.x86_64
libtool-ltdl-0:2.2.6-15.5.el6.x86_64
libtool-ltdl-devel-0:2.2.6-15.5.el6.i686
[root@localhost ~]# 

Re: libltdl.so.3 cannot open shared object

Posted: Tue Jun 16, 2015 7:19 am
by h.sabrey
Update :::

after trying to installing the library the following occurs

Code: Select all

[root@localhost ~]# yum install libtool-libs -y
Loaded plugins: fastestmirror, refresh-packagekit, security
Setting up Install Process
Loading mirror speeds from cached hostfile
 * base: mirror.skylink-datacenter.de
 * extras: centos.schlundtech.de
 * updates: mirror2.hs-esslingen.de
Package libtool-ltdl-2.2.6-15.5.el6.x86_64 already installed and latest version
Nothing to do
[root@localhost ~]#

Re: libltdl.so.3 cannot open shared object

Posted: Tue Jun 16, 2015 2:44 pm
by abrist
You may want to try to reinstall the package. Also, do you have the configure and build log of core? I wonder if there were errors pertaining to this lib in the log.

Re: libltdl.so.3 cannot open shared object

Posted: Wed Jun 17, 2015 4:08 pm
by h.sabrey
how to get this log ?

sorry i'm new to linux

Re: libltdl.so.3 cannot open shared object

Posted: Wed Jun 17, 2015 4:55 pm
by tgriep
Can you run the following and post back the results?

Code: Select all

file /usr/local/nagios/bin/nagios
/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg
uname -a
cat /etc/*release

Re: libltdl.so.3 cannot open shared object

Posted: Mon Jun 22, 2015 6:25 pm
by h.sabrey
hello my friend,

this is the result

Code: Select all

[root@localhost ~]#     file /usr/local/nagios/bin/nagios
/usr/local/nagios/bin/nagios: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.18, stripped
[root@localhost ~]#     /usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg
/usr/local/nagios/bin/nagios: error while loading shared libraries: libltdl.so.3: cannot open shared object file: No such file or directory
[root@localhost ~]#     uname -a
Linux localhost.localdomain 2.6.32-504.16.2.el6.x86_64 #1 SMP Wed Apr 22 06:48:29 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux
[root@localhost ~]#     cat /etc/*release
CentOS release 6.6 (Final)
CentOS release 6.6 (Final)
CentOS release 6.6 (Final)
[root@localhost ~]# 

Re: libltdl.so.3 cannot open shared object

Posted: Tue Jun 23, 2015 10:01 am
by jdalrymple
What version of Nagios did you install? This is probably as easy as `ln -s` to the proper library (likely libltdl.so.7)

Try:

Code: Select all

ln -s /usr/lib64/libltdl.so.7 /usr/lib64/libltdl.so.3
If that doesn't work, post the output of

Code: Select all

ls -l /usr/lib64 | grep ltdl

Re: libltdl.so.3 cannot open shared object

Posted: Tue Jun 23, 2015 6:51 pm
by h.sabrey
it works

just verified the nagios

Code: Select all

[root@localhost ~]# /usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg

Nagios Core 4.0.8
Copyright (c) 2009-present Nagios Core Development Team and Community Contributors
Copyright (c) 1999-2009 Ethan Galstad
Last Modified: 08-12-2014
License: GPL

Website: http://www.nagios.org
Reading configuration data...
   Read main config file okay...
   Read object config files okay...

Running pre-flight check on configuration data...

Checking objects...
	Checked 8 services.
	Checked 1 hosts.
	Checked 1 host groups.
	Checked 0 service groups.
	Checked 1 contacts.
	Checked 1 contact groups.
	Checked 24 commands.
	Checked 5 time periods.
	Checked 0 host escalations.
	Checked 0 service escalations.
Checking for circular paths...
	Checked 1 hosts
	Checked 0 service dependencies
	Checked 0 host dependencies
	Checked 5 timeperiods
Checking global event handlers...
Checking obsessive compulsive processor commands...
Checking misc settings...

Total Warnings: 0
Total Errors:   0

Things look okay - No serious problems were detected during the pre-flight check
[root@localhost ~]#