Snort mailing list archives
RE: snort-1.8.x, libz, solaris and LD_LIBRARY_PATH
From: "Clausing, James A (Jim), SOBUS" <jac () att com>
Date: Thu, 9 Aug 2001 15:25:37 -0400
Easiest solution is move the shared one and only leave the static
one on in place on the system where you do your build. Then, it doesn't
matter whether it is installed on the machine where it runs.
---Jim
-----Original Message-----
From: Mike Diehn [mailto:mdiehn () vicinity com]
Sent: Thursday, August 09, 2001 9:16 AM
To: snort-users () lists sourceforge net
Subject: [Snort-users] snort-1.8.x, libz, solaris and LD_LIBRARY_PATH
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?
Thanks,
Mike
_______________________________________________
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
_______________________________________________
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)
