Rate This Document
Findability
Accuracy
Completeness
Readability

Configuring Boost

You can use either of the following methods to configure Boost: 1. Download the software package and create a symbolic link. Method 2: Download and install the software package.

Downloading the Software Package and Creating a Symbolic Link

Hyperscan compilation depends on Boost 1.57 or later. You can use this method to directly create a Boost symbolic link without running the Boost installation command. In this document, the Boost 1.87 is used for the compilation environment.

  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. Create a symbolic link.
    ln -s {boost_path}/boost include/boost

Downloading and Installing the Software Package

You can install the Boost software package on the server so that you do not need to download the source code to create a symbolic link to the Boost header file repeatedly. If you perform the following operations, you do not need to create a symbolic link.

  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 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 the Boost.
    ./b2 install --prefix=/usr

    After the installation is complete, the following information is displayed:

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