Project: Netis (Observability and Analysis / Observability)
File: BUILD.md

CentOS 7.x or CentOS 8.x SUSE 12SP2 Ubuntu 18.04LTS GCC 4.8.5 or higher CMake 3.3 or higher boost-devel boost-static Prepair the environment. ```shell yum groupinstall "Development Tools" yum -y install cmake yum -y install libpcap-devel boost-devel boost-static 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 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 -DCPPZMQBUILDTESTS=OFF .. sudo make -j4 install ``` build static libs of third parties from src code (links provided below) and copy the built libs to /path/cloud-probe/dep/unix/lib https://github.com/boostorg/boost/archive/refs/tags/boost-1.59.0.tar.gz https://github.com/curl/curl/archive/refs/tags/curl-7510.tar.gz https://github.com/the-tcpdump-group/libpcap/archive/refs/tags/libpcap-1.5.3.tar.gz https://github.com/openssl/openssl/archive/refs/tags/OpenSSL10_2k.tar.gz https://github.com/google/glog/archive/refs/tags/v0.5.0-rc2.tar.gz https://github.com/orocos-toolchain/log4cpp/archive/refs/tags/v2.9.1.tar.gz Note: you can also get those libs built by us from below link for your convenience. https://github.com/Netis/cloud-probe/releases/download/v0.7.0/static_lib.tar.gz Clone or download the project. Go to the project folder and build it. ```shell cd /path/to/cloud-probe mkdir build && cd build cmake .. && make ``` Check output binaries. There should be four files in the bin folder. ```shell ls ../bin gredemo gredump pcapcompare pktminerg ``` Prepair the environment. ```shell apt-get -y install build-essential apt-get -y install cmake apt-get -y install libpcap-dev libboost-all-dev 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 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 -DCPPZMQBUILDTESTS=OFF .. sudo make -j4 install ``` build static libs of third parties from src code (links provided below) and copy the built libs to /path/cloud-probe/dep/unix/lib https://github.com/boostorg/boost/archive/refs/tags/boost-1.59.0.tar.gz https://github.com/curl/curl/archive/refs/tags/curl-7510.tar.gz https://github.com/the-tcpdump-group/libpcap/archive/refs/tags/libpcap-1.5.3.tar.gz https://github.com/openssl/openssl/archive/refs/tags/OpenSSL10_2k.tar.gz https://github.com/google/glog/archive/refs/tags/v0.5.0-rc2.tar.gz https://github.com/orocos-toolchain/log4cpp/archive/refs/tags/v2.9.1.tar.gz Note: you can also get those libs built by us from below link for your convenience. https://github.com/Netis/cloud-probe/releases/download/v0.7.0/static_lib.tar.gz Clone or download the project. Go to the project folder and build it. ```shell 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. ```shell ls ../bin gredemo gredump pcapcompare pktminerg probedaemon ``` Prepair the environment. ```shell zypper -n install git-core zypper -n install cmake zypper -n install libpcap-devel boost-devel zypper -n si boost cd /usr/src/packages/SOURCES/ tar --bzip2 -xf boost154_0.tar.bz2 cd boost154_0/ ./bootstrap.sh ./b2 install stage 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 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 -DCPPZMQBUILDTESTS=OFF .. sudo make -j4 install ``` build static libs of third parties from src code (links provided below) and copy the built libs to /path/cloud-probe/dep/unix/lib https://github.com/boostorg/boost/archive/refs/tags/boost-1.59.0.tar.gz https://github.com/curl/curl/archive/refs/tags/curl-7510.tar.gz https://github.com/the-tcpdump-group/libpcap/archive/refs/tags/libpcap-1.5.3.tar.gz https://github.com/openssl/openssl/archive/refs/tags/OpenSSL10_2k.tar.gz https://github.com/google/glog/archive/refs/tags/v0.5.0-rc2.tar.gz https://github.com/orocos-toolchain/log4cpp/archive/refs/tags/v2.9.1.tar.gz Note: you can also get those libs built by us from below link for your convenience. https://github.com/Netis/cloud-probe/releases/download/v0.7.0/static_lib.tar.gz Clone or download the project. Go to the project folder and build it. ```shell cd /path/to/packet-agent mkdir build && cd build cmake .. && make ``` Check output binaries. There should be four files in the bin folder. ```shell ls ../bin gredemo gredump pcapcompare pktminerg probedaemon* ``` ```shell 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 has been installed. Then make sure you have accepted the xcodebuild license. ```shell sudo xcodebuild -license accept ```