Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Nagios failes to start after mysql4 ->mysql5 upgrade[SOLVED]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
arndawg
Tux's lil' helper
Tux's lil' helper


Joined: 02 Jun 2006
Posts: 97

PostPosted: Mon Jul 30, 2007 8:08 am    Post subject: Nagios failes to start after mysql4 ->mysql5 upgrade[SOLV Reply with quote

Hi i get this error when trying to start nagios.

Code:
/usr/nagios/bin/nagios: error while loading shared libraries: libmysqlclient.so.14: cannot open shared object file: No such file or directory
 * Configuration Error. Please fix your configfile           


What can i do to fix this? What config file is nagios talking about?

I tried adding a symlink for libmysqlclient.so.14 -> libmysqlclient.so.15.0.0
in /usr/lib/mysql

i also added /usr/lib/mysql in /etc/ld.so.conf and ran ldconfig.. but nothing works. :(

edit: Also tried revdep-rebuild:
Code:

 # revdep-rebuild
Configuring search environment for revdep-rebuild

Checking reverse dependencies...

Packages containing binaries and libraries broken by a package update
will be emerged.

Collecting system binaries and libraries... done.
  (/home/root/.revdep-rebuild.1_files)

Collecting complete LD_LIBRARY_PATH... done.
  (/home/root/.revdep-rebuild.2_ldpath)

Checking dynamic linking consistency...
 done.
  (/home/root/.revdep-rebuild.3_rebuild)

Assigning files to ebuilds... Nothing to rebuild

Evaluating package order... done.
  (/home/root/.revdep-rebuild.5_order)

Dynamic linking on your system is consistent... All done.


Still don't work.


Last edited by arndawg on Mon Jul 30, 2007 9:43 am; edited 1 time in total
Back to top
View user's profile Send private message
vad3r
Guru
Guru


Joined: 02 May 2004
Posts: 461
Location: Munich, Germany

PostPosted: Mon Jul 30, 2007 9:06 am    Post subject: Reply with quote

You compiled nagios with the mysql USE flag. The lib you compiled against seems to be not available anymore (as a result of your mysql update). Try recompiling nagios. This should do the trick. You can use
Code:
# ldd /usr/nagios/bin/nagios

to check if there are any other missing libs.
Back to top
View user's profile Send private message
arndawg
Tux's lil' helper
Tux's lil' helper


Joined: 02 Jun 2006
Posts: 97

PostPosted: Mon Jul 30, 2007 9:15 am    Post subject: Reply with quote

vad3r wrote:
You compiled nagios with the mysql USE flag. The lib you compiled against seems to be not available anymore (as a result of your mysql update). Try recompiling nagios. This should do the trick. You can use
Code:
# ldd /usr/nagios/bin/nagios

to check if there are any other missing libs.


Okey thanks. looks like only mysql was missing. I tried emerge -av nagios and that didn't do the trick. But i just remembered you have to emerge nagios-core. Compiling now and see if it works. Will edit this post if it don't.

edit: worked :)
Back to top
View user's profile Send private message
vad3r
Guru
Guru


Joined: 02 May 2004
Posts: 461
Location: Munich, Germany

PostPosted: Mon Jul 30, 2007 9:21 am    Post subject: Reply with quote

Please add (Solved) to the subject
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum