Snort mailing list archives

RE: snort-1.8.x, libz, solaris and LD_LIBRARY_PATH


From: Kevin Brown <Kevin.M.Brown () asu edu>
Date: Thu, 09 Aug 2001 07:43:27 -0700

libz is not part of libpcap or mysql (at least not in linux).  I think it is
a compression library.  Try to find it on your system, or check
www.sunfreeware.com for it.

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

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.

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?

Any ideas?> 

_______________________________________________
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: