Advertisement
Guest User

Untitled

a guest
Jul 29th, 2015
180
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.83 KB | None | 0 0
  1. # Build bro with pfring on debian 7.8
  2.  
  3. # Setup the source tree
  4. mkdir src
  5. git clone git@github.com:bro/bro.git
  6. cd bro; git submodule update --init --recursive
  7.  
  8. # Install build-time dependencies
  9. sudo apt-get install cmake make gcc g++ flex bison libpcap-dev libssl-dev python-dev swig zlib1g-dev
  10.  
  11. # Install optional build-time dependencies, numa needed for pfring
  12. sudo apt-get install libgeoip-dev curl libgoogle-perftools-dev libnuma-dev
  13.  
  14. # Set environment
  15. export prefix=/opt/bro
  16. export localstatedir=/var/opt/bro
  17. export LD_LIBRARY_PATH=./${prefix}/lib
  18. export CFLAGS="-pthread"
  19. export LDFLAGS="-Wl,--no-as-needed -lrt "
  20. export LIBS="-lrt -lnuma"
  21.  
  22. # Run configure, optionally include PFRING
  23. ./configure --with-pcap=/opt/pfring --prefix=${prefix} --localstatedir=${localstatedir} --pkg-name-prefix=Bro --binary-package
  24. ( cd build && make package )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement