Re: error compiling snort
On your
Code:
<path_to_snort_source>/src/preprocessors/flow/portscan/server_stats.c
change this line:
Code:
fd = open(filename, O_CREAT|O_TRUNC|O_SYNC|O_WRONLY);
with this one:
Code:
fd = open(filename, O_CREAT, S_IRUSR|S_IWUSR|O_TRUNC|O_SYNC|O_WRONLY);
Source of this information:
Code:
http://www.snort.org/reg-bin/forums.cgi?forum_id=4&topic_id=6119
After this change, the compilation works.
Hope it help you!
Regards,
G0rt3k
Re: error compiling snort
G0rt3k
Thank you. The fix worked.
Re: error compiling snort
About
Code:
<path_to_snort_source>/src/preprocessors/flow/portscan/server_stats.c
For me the trail ends at <path_to_snort_source>/src/preprocessors there isn't any 'flow' folder, there are lots of other folders, which I looked into, but no flow. No portscan folder and I when I grepped for "server_stats.c" in the snort directory it didn't find it, I'll keep looking.
The Snort link you submitted is dead as well, no redirect.
Thanks for the effort, but I'm at a dead end.
edit: ignore all that, I re-ran 'make install' again only I used 'sudo make install' , the guide I followed didn't mention using sudo before 'make install', I had a bad feeling about that and should have followed my instincts! There weren't any errors after using sudo for 'make install'.
Re: error compiling snort
hi i am new to ubuntu and linux in general and when i am trying to compile snort i get an error.
i am in /usr/share/doc/snort i could not find my plugins so i have swrx-snort-plugin-pack-0.2.0.tar.gz
well when i type in ./configure -enable-dynamicplugin --with-mysql i get the error
bash: ./configure: No such file or directory
thank you for the help
Re: error compiling snort
If you there isn't a file called configure in the directory you're in, the command won't work.
Is there a reason why you are trying to compile from source, instead of installing snort from the repositories?
Re: error compiling snort
i re-installed snort from the repositories idk why i did not do this in the first place im slowly making progress on setting this up its a bit hard being new to ubuntu and linux in general (im on day number 4 of using this). thanks for the help chief.
i know this is probably a dumb question but if i installed snort from the repository i am assuming that i do not have to write a script to start snort correct?
(i am just following the steps from http://ubuntuforums.org/showthread.php?t=919472 )
Re: error compiling snort
I am trying to add snort using the sticky, I got to this part:
./configure -enable-dynamicplugin --with-mysql
ERROR! Libpcap library/headers (libpcap.a (or .so)/pcap.h)
not found, go get it from http://www.tcpdump.org
or use the --with-libpcap-* options, if you have it installed
in unusual place. Also check if your libpcap depends on another
shared library that may be installed in an unusual place
Do I just need to wget the libpcap from their site?
Re: error compiling snort
You probably need to install the libcap development package:
Code:
sudo apt-get install libcap-dev
Re: error compiling snort
my probelm is about libdnet, it make i can't ./configure my snort
i'm very stuck with it..
please help, i've been try to apt-get install libdnet-dev and it's successfull