Snort mailing list archives
re: shared libraries (resolved)
From: cc <cc () belfordhk com>
Date: Wed, 20 Aug 2003 13:31:13 +0800
Hi, Regarding my previous post (if it ever appears on the list), I found out the reason for the shared libraries error. It was definitely the libmysqlclient.so library which couldn't be found by snort. I did a 'strace ./snort' and found that it was searching for libmysqlsqlclient.so.12 in directories that I've never seen before. Here's a dump (fwiw): open("/lib/i686/mmx/libmysqlclient.so.12", O_RDONLY) = -1 ENOENT (No such file or directo stat64(0xbfffed0c, 0xbfffed74) = -1 ENOENT (No such file or directory) open("/lib/i686/libmysqlclient.so.12", O_RDONLY) = -1 ENOENT (No such file or directory) stat64(0xbfffed0c, 0xbfffed74) = -1 ENOENT (No such file or directory) open("/lib/mmx/libmysqlclient.so.12", O_RDONLY) = -1 ENOENT (No such file or directory) stat64(0xbfffed0c, 0xbfffed74) = -1 ENOENT (No such file or directory) open("/lib/libmysqlclient.so.12", O_RDONLY) = -1 ENOENT (No such file or directory) stat64(0xbfffed0c, 0xbfffed74) = 0 open("/usr/lib/i686/mmx/libmysqlclient.so.12", O_RDONLY) = -1 ENOENT (No such file or dir stat64(0xbfffed0c, 0xbfffed74) = -1 ENOENT (No such file or directory) open("/usr/lib/i686/libmysqlclient.so.12", O_RDONLY) = -1 ENOENT (No such file or directo stat64(0xbfffed0c, 0xbfffed74) = -1 ENOENT (No such file or directory) open("/usr/lib/mmx/libmysqlclient.so.12", O_RDONLY) = -1 ENOENT (No such file or director stat64(0xbfffed0c, 0xbfffed74) = -1 ENOENT (No such file or directory) open("/usr/lib/libmysqlclient.so.12", O_RDONLY) = -1 ENOENT (No such file or directory) stat64(0xbfffed0c, 0xbfffed74) = 0 writev(2, [{"./snort", 7}, {": error while loading shared lib"..., 40}, {"cannot open sha ile", 30}, {": ", 2}, {"No such file or directory", 25}, {"\n", 1}], 8./snort: error whil not load shared object file: No such file or directory As you can see, it's looking for libmysqlclient.so.12 in different directories which I don't have (aside for /lib and /usr/lib). I ended up symlinking the libmysqlclient.so.12 in the /usr/local/mysql/lib/mysql directory to the /usr/lib directory. Boom. Snort now works. Should've known... ** All information contained in this email is strictly ** ** confidential and may be used by the intended receipient ** ** only. **
Current thread:
- re: shared libraries (resolved) cc (Aug 19)