libltdl.so.3 cannot open shared object

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
h.sabrey
Posts: 30
Joined: Sun Jun 14, 2015 7:18 am

libltdl.so.3 cannot open shared object

Post 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
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: libltdl.so.3 cannot open shared object

Post 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
Former Nagios employee
h.sabrey
Posts: 30
Joined: Sun Jun 14, 2015 7:18 am

Re: libltdl.so.3 cannot open shared object

Post 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 ~]# 
h.sabrey
Posts: 30
Joined: Sun Jun 14, 2015 7:18 am

Re: libltdl.so.3 cannot open shared object

Post 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 ~]#
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: libltdl.so.3 cannot open shared object

Post 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.
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
h.sabrey
Posts: 30
Joined: Sun Jun 14, 2015 7:18 am

Re: libltdl.so.3 cannot open shared object

Post by h.sabrey »

how to get this log ?

sorry i'm new to linux
User avatar
tgriep
Madmin
Posts: 9177
Joined: Thu Oct 30, 2014 9:02 am

Re: libltdl.so.3 cannot open shared object

Post 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
Be sure to check out our Knowledgebase for helpful articles and solutions!
h.sabrey
Posts: 30
Joined: Sun Jun 14, 2015 7:18 am

Re: libltdl.so.3 cannot open shared object

Post 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 ~]# 
jdalrymple
Skynet Drone
Posts: 2620
Joined: Wed Feb 11, 2015 1:56 pm

Re: libltdl.so.3 cannot open shared object

Post 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
h.sabrey
Posts: 30
Joined: Sun Jun 14, 2015 7:18 am

Re: libltdl.so.3 cannot open shared object

Post 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 ~]# 
Locked