SoftTree Technologies SoftTree Technologies
Technical Support Forums
RegisterSearchFAQMemberlistUsergroupsLog in
Can't open shared library 'db_audit_mysql.so'

 
Reply to topic    SoftTree Technologies Forum Index » DB Audit, DB Mail, DB Tools View previous topic
View next topic
Can't open shared library 'db_audit_mysql.so'
Author Message
gczhou



Joined: 09 Jun 2009
Posts: 2
Country: United States

Post Can't open shared library 'db_audit_mysql.so' Reply with quote
I use DB Audit Expert to connect mysql 5.1.33 on 32 bit Red Hat Enterprise Linux ES release 4 (Nahant Update 5)

The error log is:

090609 17:02:50 [ERROR] Can't open shared library 'db_audit_mysql.so' (errno: 0 /usr/local/mysql-5.1.33-linux-i686-glibc23/lib/plugin/db_audit_mysql.so: cannot open shared object file: No such file or directo)
090609 17:02:50 [ERROR] Can't open shared library 'db_audit_mysql.so' (errno: 0 /usr/local/mysql-5.1.33-linux-i686-glibc23/lib/plugin/db_audit_mysql.so: cannot open shared object file: No such file or directo)
090609 17:02:50 [ERROR] Can't open shared library 'db_audit_sendmail.so' (errno: 0 /usr/local/mysql-5.1.33-linux-i686-glibc23/lib/plugin/db_audit_sendmail.so: cannot open shared object file: No such file or dire)
090609 17:02:50 [ERROR] Can't open shared library 'db_audit_sendmail.so' (errno: 0 /usr/local/mysql-5.1.33-linux-i686-glibc23/lib/plugin/db_audit_sendmail.so: cannot open shared object file: No such file or dire)
090609 17:02:50 [Note] Event Scheduler: Loaded 0 events

echo $LD_LIBRARY_PATH
/usr/local/mysql/lib/mysql:/usr/local/mysql/lib/mysql

# cat /etc/ld.so.conf
include ld.so.conf.d/*.conf
/opt/dell/srvadmin/dataeng/bin
/opt/dell/srvadmin/hapi/bin
/opt/dell/srvadmin/oma/bin
/opt/dell/srvadmin/omsa/bin
/opt/dell/srvadmin/shared/bin
/opt/dell/srvadmin/sm
/opt/dell/srvadmin/sm/dellvl
/usr/local/mysql/lib
/usr/local/mysql/lib/mysql


I copied db*.so to /lib, /usr/local/msyql/lib, /usr/local/mysql/lib/plugin, I still got the above error,

Can somebody point out the problem here?
Thanks
Tue Jun 09, 2009 1:15 pm View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 6500

Post Reply with quote
The error message indicates that MySQL server is unable to find or load this file (or one of the dependencies)
If you copy it to /usr/lib, MySQL should be able to find it there. I assume it has permissions to read from that directory.


Also, you can check dependencies using ldd command and verify you got the required files. For ldd command syntax please see here http://linux.die.net/man/1/ldd
Tue Jun 09, 2009 2:14 pm View user's profile Send private message
gczhou



Joined: 09 Jun 2009
Posts: 2
Country: United States

Post db_audit_mysql.so cannot be found Reply with quote
How do I fix GLIBCXX_3.4.5 NOT FOUND ERROR, thanks,

[root@atla-mss-test1 ~]# ldd /usr/lib/db_audit_mysql.so
/usr/lib/db_audit_mysql.so: /usr/lib/libstdc++.so.6: version `GLIBCXX_3.4.5' not found (required by /usr/lib/db_audit_mysql.so)
librt.so.1 => /lib/tls/librt.so.1 (0x00638000)
libelf.so.1 => /usr/lib/libelf.so.1 (0x00554000)
libdl.so.2 => /lib/libdl.so.2 (0x00178000)
libpthread.so.0 => /lib/tls/libpthread.so.0 (0x005a0000)
libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x003fc000)
libm.so.6 => /lib/tls/libm.so.6 (0x00aac000)
libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x00111000)
libc.so.6 => /lib/tls/libc.so.6 (0x0064c000)
/lib/ld-linux.so.2 (0x0079d000)
[root@atla-mss-test1 ~]# ldd /usr/lib/db_audit_sendmail.so
libesmtp.so.5 => not found
libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x00259000)
libm.so.6 => /lib/tls/libm.so.6 (0x00415000)
libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x00333000)
libc.so.6 => /lib/tls/libc.so.6 (0x00111000)
/lib/ld-linux.so.2 (0x0079d000)
Thu Jun 11, 2009 11:42 am View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 6500

Post Reply with quote
Please check http://ronaldbradford.com/blog/solving-the-glibcxx_344-glibcxx_345glibcxx_346-error-2006-02-03/
Thu Jun 11, 2009 2:00 pm View user's profile Send private message
Display posts from previous:    
Reply to topic    SoftTree Technologies Forum Index » DB Audit, DB Mail, DB Tools All times are GMT - 4 Hours
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


 

 

Powered by phpBB © 2001, 2005 phpBB Group
Design by Freestyle XL / Flowers Online.