LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   snort: error while loading shared libraries: libdnet.1:cannot open shared object file (https://www.linuxquestions.org/questions/linux-newbie-8/snort-error-while-loading-shared-libraries-libdnet-1-cannot-open-shared-object-file-4175497350/)

uta 03-07-2014 03:33 AM

snort: error while loading shared libraries: libdnet.1:cannot open shared object file
 
i am using ubuntu 12.04. I've already installed snort and its supporting packets like barnyard etc. i got a trouble when i tried to test the snort with this command:
sudo /usr/local/snort/bin/snort -u snort -g snort -c /usr/local/snort/etc/snort.conf -i eth1
it said:
/usr/local/snort/bin/snort: error while loading shared libraries: libdnet.1: cannot open shared object file: No such file or directory
anyone can help me?

thanks before :)

TB0ne 03-07-2014 08:59 AM

Quote:

Originally Posted by uta (Post 5130416)
i am using ubuntu 12.04. I've already installed snort and its supporting packets like barnyard etc. i got a trouble when i tried to test the snort with this command:
sudo /usr/local/snort/bin/snort -u snort -g snort -c /usr/local/snort/etc/snort.conf -i eth1
it said:
/usr/local/snort/bin/snort: error while loading shared libraries: libdnet.1: cannot open shared object file: No such file or directory
anyone can help me?

Your other post was reported for being a duplicate and for re-opening/hijacking an old thread. The error very clearly tells you that you are missing the libdnet library. Did you try to look up how you would install this? Try "sudo apt-get install libdnet"?

And you don't say how you installed snort, since the instructions for the pre-built package on Ubuntu are different than for installing things via source.

felbvts 03-07-2014 01:19 PM

I found that these must be installed in order: daq, libdnet, snort

I install libdnet from a src rpm -- I found that way to work best for me.

TB0ne 03-07-2014 03:45 PM

Quote:

Originally Posted by felbvts (Post 5130705)
I found that these must be installed in order: daq, libdnet, snort

I install libdnet from a src rpm -- I found that way to work best for me.

That is not really a good way to proceed. Unless you need some bleeding-edge feature, installing from package is a better way to go. Not only is it quicker, but FAR less likely to introduce instability in your system.


All times are GMT -5. The time now is 08:33 AM.