View previous topic :: View next topic |
Author |
Message |
arndawg Tux's lil' helper
Joined: 02 Jun 2006 Posts: 97
|
Posted: Mon Jul 30, 2007 8:08 am Post subject: Nagios failes to start after mysql4 ->mysql5 upgrade[SOLV |
|
|
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 |
|
|
vad3r Guru
Joined: 02 May 2004 Posts: 461 Location: Munich, Germany
|
Posted: Mon Jul 30, 2007 9:06 am Post subject: |
|
|
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 |
|
|
arndawg Tux's lil' helper
Joined: 02 Jun 2006 Posts: 97
|
Posted: Mon Jul 30, 2007 9:15 am Post subject: |
|
|
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 |
|
|
vad3r Guru
Joined: 02 May 2004 Posts: 461 Location: Munich, Germany
|
Posted: Mon Jul 30, 2007 9:21 am Post subject: |
|
|
Please add (Solved) to the subject |
|
Back to top |
|
|
|