solved: error loading shared library
Posted: Sun Jun 30, 2013 8:29 pm
Ive installed a new nagios32 bit vmware box and successfully restored my backup. I now get this error with ndo2db.
Starting ndo2db:/usr/local/nagios/bin/ndo2db: error while loading shared libraries: libmysqlclient.so.15: cannot open shared object file: No such file or directory
done.
[root@nagios32 mysql]# ls -la /usr/lib/mysql/
total 5900
drwxr-xr-x. 3 root root 4096 Jun 30 20:01 .
dr-xr-xr-x. 45 root root 20480 Jun 5 15:09 ..
lrwxrwxrwx 1 root root 26 Jun 30 19:48 libmysqlclient_r.so -> libmysqlclient_r.so.15.0.0
lrwxrwxrwx 1 root root 26 Jun 30 20:01 libmysqlclient_r.so.15 -> libmysqlclient_r.so.15.0.0
-rwxr-xr-x 1 terry terry 1462756 Jun 30 19:47 libmysqlclient_r.so.15.0.0
lrwxrwxrwx 1 root root 26 Jun 5 15:04 libmysqlclient_r.so.16 -> libmysqlclient_r.so.16.0.0
-rwxr-xr-x 1 root root 1536548 Apr 25 14:10 libmysqlclient_r.so.16.0.0
lrwxrwxrwx 1 root root 24 Jun 30 19:49 libmysqlclient.so -> libmysqlclient.so.15.0.0
lrwxrwxrwx 1 root root 24 Jun 30 20:01 libmysqlclient.so.15 -> libmysqlclient.so.15.0.0
-rwxr-xr-x 1 terry terry 1452764 Jun 30 19:47 libmysqlclient.so.15.0.0
lrwxrwxrwx 1 root root 24 Jun 5 15:04 libmysqlclient.so.16 -> libmysqlclient.so.16.0.0
-rwxr-xr-x 1 root root 1525216 Apr 25 14:10 libmysqlclient.so.16.0.0
-rwxr-xr-x 1 root root 13149 Apr 25 14:10 mysqlbug
-rwxr-xr-x 1 root root 6433 Apr 25 14:10 mysql_config
drwxr-xr-x 2 root root 4096 Jun 5 15:05 plugin
I've copied over the libmysqlclient.so.15 libraries and created symlinks. This has had no effect however.
What do I need to update in order for it to properly register?
Starting ndo2db:/usr/local/nagios/bin/ndo2db: error while loading shared libraries: libmysqlclient.so.15: cannot open shared object file: No such file or directory
done.
[root@nagios32 mysql]# ls -la /usr/lib/mysql/
total 5900
drwxr-xr-x. 3 root root 4096 Jun 30 20:01 .
dr-xr-xr-x. 45 root root 20480 Jun 5 15:09 ..
lrwxrwxrwx 1 root root 26 Jun 30 19:48 libmysqlclient_r.so -> libmysqlclient_r.so.15.0.0
lrwxrwxrwx 1 root root 26 Jun 30 20:01 libmysqlclient_r.so.15 -> libmysqlclient_r.so.15.0.0
-rwxr-xr-x 1 terry terry 1462756 Jun 30 19:47 libmysqlclient_r.so.15.0.0
lrwxrwxrwx 1 root root 26 Jun 5 15:04 libmysqlclient_r.so.16 -> libmysqlclient_r.so.16.0.0
-rwxr-xr-x 1 root root 1536548 Apr 25 14:10 libmysqlclient_r.so.16.0.0
lrwxrwxrwx 1 root root 24 Jun 30 19:49 libmysqlclient.so -> libmysqlclient.so.15.0.0
lrwxrwxrwx 1 root root 24 Jun 30 20:01 libmysqlclient.so.15 -> libmysqlclient.so.15.0.0
-rwxr-xr-x 1 terry terry 1452764 Jun 30 19:47 libmysqlclient.so.15.0.0
lrwxrwxrwx 1 root root 24 Jun 5 15:04 libmysqlclient.so.16 -> libmysqlclient.so.16.0.0
-rwxr-xr-x 1 root root 1525216 Apr 25 14:10 libmysqlclient.so.16.0.0
-rwxr-xr-x 1 root root 13149 Apr 25 14:10 mysqlbug
-rwxr-xr-x 1 root root 6433 Apr 25 14:10 mysql_config
drwxr-xr-x 2 root root 4096 Jun 5 15:05 plugin
I've copied over the libmysqlclient.so.15 libraries and created symlinks. This has had no effect however.
What do I need to update in order for it to properly register?