Rate This Document
Findability
Accuracy
Completeness
Readability

Configuring Boost

Hyperscan compilation requires Boost 1.57 or later. In this document, Boost 1.87 is used. The following are two methods for configuring Boost. Select one as required.

  • Method 1: Download the Boost software package and create a symbolic link. This method does not require Boost installation.
  • Method 2: Download the Boost software package and install it on the server. This method does not require symbolic link creation.

The detailed configuration steps are as follows.

(Method 1) Downloading the Software Package and Creating a Symbolic Link

  1. Obtain the Boost 1.87 source package.
    wget https://archives.boost.io/release/1.87.0/source/boost_1_87_0.tar.gz
  2. Decompress the source package.
    tar -zxf boost_1_87_0.tar.gz
  3. For details about how to create a symbolic link, see 2.

(Method 2) Downloading and Installing the Software Package

  1. Obtain the software package.
    wget https://archives.boost.io/release/1.87.0/source/boost_1_87_0.tar.gz
  2. Decompress the software package.
    tar -zxf boost_1_87_0.tar.gz
  3. Go to the directory generated after the decompression.
    cd boost_1_87_0
  4. Run the bootstrap.sh script and set related parameters.
    ./bootstrap.sh --with-libraries=all --with-toolset=gcc
  5. Perform the compilation.
    ./b2 toolset=gcc
  6. Install Boost.
    ./b2 install --prefix=/usr

    If information similar to the following is displayed, the installation is successful.

  7. Update the dynamic link libraries in the system.
    ldconfig