Snort mailing list archives
Re: snort-1.8.x, libz, solaris and LD_LIBRARY_PATH
From: Erek Adams <erek () theadamsfamily net>
Date: Thu, 9 Aug 2001 09:57:04 -0700 (PDT)
On Thu, 9 Aug 2001, Mike Diehn wrote:
I'm trying to compile snort-1.8.1-beta6 or beta7 on a Solaris 2.7 sparc. The result is a binary that can't find libz.so.1 on it's own when I ask it to run. I configured with: ./configure --with-libpcap-includes=../libpcap-0.4 \ --with-libpcap-libraries=../libpcap-0.4 \ --with-mysql=../mysql-3.23.40-sun-solaris2.7-sparc
I can speak from experience: Snort does just fine on Sol7 Sparc. :)
Configuration and make went fine, no errors. When I try to run the resulting snort binary, though: [mdiehn@wombat snort-1.8.1-beta7]3 ./snort -h ld.so.1: ./snort: fatal: libz.so: open failed: No such file or directory Killed [mdiehn@wombat snort-1.8.1-beta7]4 If I set LD_LIBRARY_PATH=/usr/local/lib, it works. However, when I copy the binary to another system, ostensibly identical, that trick *doesn't* work. I verified this other system has libz installed in the same place, too. I can't be compiling directly on each system I'm going to install on, so this is a show stopper for me. I see in the comments in configure.in # Look for libz. This is needed for OpenBSD. Continue trucking # if we can't find it anyway Seems to imply that we don't need it on Solaris. That fits with my experience compiling snort-1.7 as snort-1.7 is running fine on another Solaris 2.7 that really doesn't have libz installed.
Well... Solaris is has the BSD 'appendix' thing. :-) It's there, and due to that some things might think they need it.
I did check config.status, the Makefiles and the output from configure. They all indicate that libz was found during the configure process. Why wouldn't it be found during the run?
If I'm guessing (which I am! :), I'd guess there are a few things that it could be: 1) Script out of cron--Be sure LD_LIBRARY_PATH is set in the script. 2) You're in a chroot jail--Copy zlib into /pathtojail/usr/local/lib 3) Check symlinks--Many times something installs a lib_bleh.so.0 and something requires a lib_bleh.so.1. 4) It hates you. ;-) Check that out and let us know! ----- Erek Adams Nifty-Type-Guy TheAdamsFamily.Net _______________________________________________ Snort-users mailing list Snort-users () lists sourceforge net Go to this URL to change user options or unsubscribe: http://lists.sourceforge.net/lists/listinfo/snort-users Snort-users list archive: http://www.geocrawler.com/redir-sf.php3?list=snort-users
Current thread:
- snort-1.8.x, libz, solaris and LD_LIBRARY_PATH Mike Diehn (Aug 09)
- Re: snort-1.8.x, libz, solaris and LD_LIBRARY_PATH Erek Adams (Aug 09)
- <Possible follow-ups>
- RE: snort-1.8.x, libz, solaris and LD_LIBRARY_PATH Kevin Brown (Aug 09)
- RE: snort-1.8.x, libz, solaris and LD_LIBRARY_PATH Clausing, James A (Jim), SOBUS (Aug 09)
- Re: snort-1.8.x, libz, solaris and LD_LIBRARY_PATH Mike Diehn (Aug 09)