Skip to content

Instantly share code, notes, and snippets.

@dcode
Created July 9, 2015 20:56
Show Gist options
  • Save dcode/0ff4840e1a6178976079 to your computer and use it in GitHub Desktop.
Save dcode/0ff4840e1a6178976079 to your computer and use it in GitHub Desktop.
Build Bro with PF_RING on Debian 7.8
# Build bro with pfring on debian 7.8
# Setup the source tree
mkdir src
git clone git@github.com:bro/bro.git
cd bro; git submodule update --init --recursive
# Install build-time dependencies
sudo apt-get install cmake make gcc g++ flex bison libpcap-dev libssl-dev python-dev swig zlib1g-dev
# Install optional build-time dependencies, numa needed for pfring
sudo apt-get install libgeoip-dev curl libgoogle-perftools-dev libnuma-dev
# Set environment
export prefix=/opt/bro
export localstatedir=/var/opt/bro
export LD_LIBRARY_PATH=./${prefix}/lib
export CFLAGS="-pthread"
export LDFLAGS="-Wl,--no-as-needed -lrt "
export LIBS="-lrt -lnuma"
# Run configure, optionally include PFRING
./configure --with-pcap=/opt/pfring --prefix=${prefix} --localstatedir=${localstatedir} --pkg-name-prefix=Bro --binary-package
( cd build && make package )
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment