Compile snort on Centos 5.2 x86_64

September 14th, 2008 by bodhi.zazen

This is a *brief* how to compile snort on Centos 5.2 x86_64 (64 bit).

First install dependencies (some of these dependencies are for base)

yum -y install mysql mysql-devel mysql-bench mysql-server mysql-devel php-mysql httpd gcc gcc-c++ pcre-devel php-gd gd libpcap-devel php php-pear

Then download snort and a set of rules. When you compile you need to specify the path to the libraries (all one line):

./configure –with-mysql –enable-dynamicplugin –with-libpcap-libraries=/usr/lib64/ –with-libpcre-libraries=/usr/lib64/ –with-libnet-libraries=/usr/lib64/ –enable-dynamicplugin LDFLAGS=’-L/usr/lib64 -L/usr/lib64 -L/usr/lib64/mysql’

That’s it, make and make install then configure snort.

StumbleUpon

Posted in Linux

10 Comments »

  1. wondergul think))

    Comment by Stone — January 18, 2009 @ 2:29 pm

  2. what a wonderful think to read thjs post!

    Comment by Torr — January 19, 2009 @ 5:16 am

  3. where I may find more niformation?

    Comment by Bird — January 19, 2009 @ 10:07 am

  4. It was very useful!

    Comment by Light — January 19, 2009 @ 2:30 pm

  5. Where I may to find blogs on this topic?

    Comment by Ola — January 20, 2009 @ 4:47 am

  6. @ Bird and Ola :

    What kind of information are you looking for ?

    I wrote a how-to on snort and ossec for the Ubuntu Forums here :

    http://ubuntuforums.org/showthread.php?t=919472

    Comment by bodhi.zazen — January 20, 2009 @ 3:13 pm

  7. So nice!

    Comment by Best — January 21, 2009 @ 4:09 am

  8. Oh, it’s true, Ikno!w

    Comment by Beddy — January 21, 2009 @ 8:58 am

  9. Real story =)

    Comment by Blues — January 21, 2009 @ 1:54 pm

  10. such areap story..

    Comment by Nice — January 22, 2009 @ 7:42 am

RSS feed for comments on this post. TrackBack URL

Leave a comment