Since RH67 does not support a c++11 compiler by default, you have to do several things to build the PF_RING plugin, and bro itself. These are the step by step instructions needed.
-
sudo rpm --import http://ftp.scientificlinux.org/linux/scientific/5x/x86_64/RPM-GPG-KEYs/RPM-GPG-KEY-cern
-
wget -O /etc/yum.repos.d/slc6-devtoolset.repo http://linuxsoft.cern.ch/cern/devtoolset/slc6-devtoolset.repo
-
sudo yum install devtoolset-2 (This is a LOT of packages, be prepared to wait a while. This deployed something like 300 packages to my system)
-
Pull bro
-
export “CMAKE_CXX_COMPILER=/opt/rh/devtoolset-2/root/usr/bin/g++”
-
sh configure (with what you need)
-
make && make install
-
cd aux/plugins/pf_ring/build
-
mv CMakeCache.txt CMakeCache.txt.out
-
cd CMakeFiles && mv 2.8.12.2 2.8.12.2.out
-
cd …/…/ && sh configure --with-pfring=$yourpfringhere
I was able to perform this repeatedly. You MUST compile all parts of this with the devtoolset, or you will get segfaults and all sorts of things. This means I had to build pfring, geoip pe_xor with the devtoolset before I could build bro.
Note: Shamelessly stole two steps from https://gist.github.com/stephenturner/e3bc5cfacc2dc67eca8b for installing devtoolset-2.
Erik