Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # 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 )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement