Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

[Snort-users] error while loading shared libraries: libdnet.1:

1,909 views
Skip to first unread message

SnortFan

unread,
Jan 27, 2014, 12:17:45 PM1/27/14
to
Hi All,
     When trying to start snort, I get the following errors.

Starting SNORTD p2p2 (snort): /usr/local/bin/snort: error while loading shared libraries: libdnet.1: cannot open shared object file: No such file or directory

I just upgraded from 2.9.4.5 to 2.9.6.0.
I can get past this error by adding the environment variable:

export LD_LIBRARY_PATH=/usr/local/lib

but, I never had to do that before. Here is my "ldd snort" before adding the environment var:

ldd snort
    linux-vdso.so.1 =>  (0x00007fffa2acd000)
    libdnet.1 => not found
    libcrypto.so.10 => /usr/lib64/libcrypto.so.10 (0x000000339a400000)
    libpcre.so.0 => /lib64/libpcre.so.0 (0x00000033a1000000)
    libnsl.so.1 => /lib64/libnsl.so.1 (0x0000003399c00000)
    libm.so.6 => /lib64/libm.so.6 (0x0000003397000000)
    libdl.so.2 => /lib64/libdl.so.2 (0x0000003396000000)
    libsfbpf.so.0 => /usr/local/lib/libsfbpf.so.0 (0x00007f51671b4000)
    libpcap.so.1 => /usr/local/lib/libpcap.so.1 (0x00007f5166f76000)
    libz.so.1 => /lib64/libz.so.1 (0x0000003396c00000)
    libpthread.so.0 => /lib64/libpthread.so.0 (0x0000003396800000)
    libc.so.6 => /lib64/libc.so.6 (0x0000003396400000)
    /lib64/ld-linux-x86-64.so.2 (0x0000003395c00000)

What did I do wrong then upgrading? I compiled and installed the new daq and snort. I would rather not have to specify the LD_LIBRARY_PATH, it's not that way on any of my other servers that I'm going to be upgrading. My test server that was a clean install didn't need it.

Thanks,
Ed

Sent from a mobile device. 

waldo kitty

unread,
Jan 27, 2014, 7:43:51 PM1/27/14
to
On 1/27/2014 12:17 PM, SnortFan wrote:
[...]
> but, I never had to do that before. Here is my "ldd snort" before adding the
> environment var:

guessing, i'd say that you should "ldd daq" or similar and take a look at what
the DAQ is linked to ;)

--
NOTE: No off-list assistance is given without prior approval.
Please keep mailing list traffic on the list unless
private contact is specifically requested and granted.

------------------------------------------------------------------------------
CenturyLink Cloud: The Leader in Enterprise Cloud Services.
Learn Why More Businesses Are Choosing CenturyLink Cloud For
Critical Workloads, Development Environments & Everything In Between.
Get a Quote or Start a Free Trial Today.
http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk
_______________________________________________
Snort-users mailing list
Snort...@lists.sourceforge.net
Go to this URL to change user options or unsubscribe:
https://lists.sourceforge.net/lists/listinfo/snort-users
Snort-users list archive:
http://sourceforge.net/mailarchive/forum.php?forum_name=snort-users

Please visit http://blog.snort.org to stay current on all the latest Snort news!

SnortFan

unread,
Jan 28, 2014, 1:20:54 PM1/28/14
to
I found a solution on linuxquestions.org. I just had to fix something with my libdnet install. 

http://www.linuxquestions.org/questions/linux-software-2/honeyd-error-while-loading-shared-libraries-libdnet-1-cannot-open-shared-object-fi-885653/

locate libdnet

example:
cp /usr/local/lib/libdnet.1.0.1 /usr/local/lib/libdnet.so.1.0.1
/sbin/ldconfig
updatedb


Cheers,
Ed

Sent from a mobile device. 

Sup...@goktree.com

unread,
Mar 21, 2014, 9:50:19 AM3/21/14
to
ln -s /usr/local/lib/libdnet.1.0.1 /usr/lib/libdnet.1
0 new messages