- CentOS 6.x or CentOS 7.x
- Debian 9.5
- SUSE 12.2
- Ubuntu 16.04
- Mac OS X (experimental)
- GCC 4.8.5 or higher
- CMake 3.3 or higher
- libpcap-devel
- boost-devel
- boost-static
- Prepair the environment.
# install gcc
yum groupinstall "Development Tools"
# install cmake
yum -y install cmake
# install more required libraries
yum -y install libpcap-devel boost-devel boost-static
# build and install libzmq
wget https://github.com/zeromq/libzmq/archive/v4.3.2.zip
unzip v4.3.2.zip
cd /path/to/unziped/dir
mkdir build && cd build
cmake ..
sudo make -j4 install
# build and install cppzmq
wget https://github.com/zeromq/cppzmq/archive/v4.6.0.zip
unzip v4.6.0.zip
cd /path/to/unziped/dir
mkdir build && cd build
cmake -DCPPZMQ_BUILD_TESTS=OFF ..
sudo make -j4 install
- Clone or download the project.
- Go to the project folder and build it.
cd /path/to/packet-agent
mkdir build && cd build
cmake .. && make
- Check output binaries. There should be four files in the bin folder.
ls ../bin
gredemo* gredump* pcapcompare* pktminerg*
- Prepair the environment.
# install gcc
apt-get -y install build-essential
# install cmake
apt-get -y install cmake
# install more required libraries
apt-get -y install libpcap-dev libboost-all-dev
# build and install libzmq
wget https://github.com/zeromq/libzmq/archive/v4.3.2.zip
unzip v4.3.2.zip
cd /path/to/unziped/dir
mkdir build && cd build
cmake ..
sudo make -j4 install
# build and install cppzmq
wget https://github.com/zeromq/cppzmq/archive/v4.6.0.zip
unzip v4.6.0.zip
cd /path/to/unziped/dir
mkdir build && cd build
cmake -DCPPZMQ_BUILD_TESTS=OFF ..
sudo make -j4 install
- Clone or download the project.
- Go to the project folder and build it.
cd /path/to/packet-agent
mkdir build && cd build
cmake .. -DPLATFORM_DEBIAN=ON && make
- Check output binaries. There should be four files in the bin folder.
ls ../bin
gredemo* gredump* pcapcompare* pktminerg*
- Prepair the environment.
# install git
zypper -n install git-core
# install cmake
zypper -n install cmake
# install more required libraries
zypper -n install libpcap-devel boost-devel
zypper -n si boost
cd /usr/src/packages/SOURCES/
tar --bzip2 -xf boost_1_54_0.tar.bz2
cd boost_1_54_0/
./bootstrap.sh
./b2 install stage
# build and install libzmq
wget https://github.com/zeromq/libzmq/archive/v4.3.2.zip
unzip v4.3.2.zip
cd /path/to/unziped/dir
mkdir build && cd build
cmake ..
sudo make -j4 install
# build and install cppzmq
wget https://github.com/zeromq/cppzmq/archive/v4.6.0.zip
unzip v4.6.0.zip
cd /path/to/unziped/dir
mkdir build && cd build
cmake -DCPPZMQ_BUILD_TESTS=OFF ..
sudo make -j4 install
- Clone or download the project.
- Go to the project folder and build it.
cd /path/to/packet-agent
mkdir build && cd build
cmake .. && make
- Check output binaries. There should be four files in the bin folder.
ls ../bin
gredemo* gredump* pcapcompare* pktminerg*
- Install Xcode.
- Download the latest release of libpcap from tcpdump site. Extract the zip, enter the folder and build the library.
cd /path/to/libpcap
./configure
make
make install
# Check that libpcap.a and libpcap.dylib exist.
ls /usr/local/lib/libpcap*
- Recommended: install brew for easier package management.
# install boost
brew install boost
- build and install libzmq and cppzmq
# build and install libzmq
wget https://github.com/zeromq/libzmq/archive/v4.3.2.zip
unzip v4.3.2.zip
cd /path/to/unziped/dir
mkdir build && cd build
cmake ..
sudo make -j4 install
# build and install cppzmq
wget https://github.com/zeromq/cppzmq/archive/v4.6.0.zip
unzip v4.6.0.zip
cd /path/to/unziped/dir
mkdir build && cd build
cmake -DCPPZMQ_BUILD_TESTS=OFF ..
sudo make -j4 install
-
Clone or download the project.
-
Build the project.
cd /path/to/packet-agent
mkdir build && cd build
cmake .. && make
- Ensure the build is successful. The bin folder should contain four binary files.
ls ../bin
gredemo* gredump* pcapcompare* pktminerg*
CMake Error at /usr/local/Cellar/cmake/3.9.4/share/cmake/Modules/CMakeTestCCompiler.cmake:51 (message):
The C compiler "/usr/bin/cc" is not able to compile a simple test program.
A: Firstly, check that Xcode has been installed. Then make sure you have accepted the xcodebuild license.
sudo xcodebuild -license accept