Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I have just complied Snort 2.9.0.4 under Ubuntu 10.10 x86_64 installed with all Lamp package.
The syntax i used to compile Snort as follows below
*********************************************
~/snort-2.9.0.4# ./configure -with-mysql —prefix=/usr/local/snort —enable-ipv6 —enable-gre \-enable-mpls -enable-targetbased —enable-decoder-preprocessor-rules \-enable-ppm -enable-perfprofiling —enable-zlib —enable-active-response \-enable-normalizer —enable-reload —enable-react —enable-flexresp3
***********************************************
in snort.conf i set log as follow
********************************************************************
output database: log, mysql, user=snort password=password dbname=snort host=localhost sensor_name=gfn-sec-sn1
********************************************************************
now when i run snort " /usr/local/snort/bin/snort -c /etc/snort/snort.conf -i eth2"
I get following error
************************************************************
Log directory = /var/log/snort
database: ‘mysql’ support is not compiled into this build of snort
ERROR: If this build of snort was obtained as a binary distribution (e.g., rpm,
or Windows), then check for alternate builds that contains the necessary
‘mysql’ support.
If this build of snort was compiled by you, then re-run the
the ./configure script using the ‘—with-mysql’ switch.
For non-standard installations of a database, the ‘—with-mysql=DIR’
syntax may need to be used to specify the base directory of the DB install.
See the database documentation for cursory details (doc/README.database).
and the URL to the most recent database plugin documentation.
Fatal Error, Quitting..
************************************************************
Since i am not so expert with Linux should i point somewhere for MySQL or i missed something.
Thanks all
i noticed that but i rechecked again and its with double dash "--with " so the issue is not that
any knows how i can determine mysql path with Ubuntu 10.10 64
Thanks all
i noticed that but i rechecked again and its with double dash "--with " so the issue is not that
any knows how i can determine mysql path with Ubuntu 10.10 64
Thanks
Uhmmm...yeah, the issue IS that.
The reason you can't start Snort with mysql reporting enabled within the config file is because you never built the binary to support mysql. The error message supports this:
Your said:
Quote:
I get following error
************************************************************
Log directory = /var/log/snort
database: ‘mysql’ support is not compiled into this build of snort
Trust me...I've been there, AND the compile command you showed earlier shows that you didn't compile the binary correctly.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.