Compile snort on Centos 5.2 x86_64

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.

This entry was posted in Linux. Bookmark the permalink.

10 Responses to Compile snort on Centos 5.2 x86_64

  1. Stone says:

    wondergul think))

  2. Torr says:

    what a wonderful think to read thjs post!

  3. Bird says:

    where I may find more niformation?

  4. Light says:

    It was very useful!

  5. Ola says:

    Where I may to find blogs on this topic?

  6. bodhi.zazen says:

    @ 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

  7. Beddy says:

    Oh, it’s true, Ikno!w

  8. Blues says:

    Real story =)

  9. Nice says:

    such areap story..

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>