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.
- Obtain the Boost 1.87 source package.
wget https://archives.boost.io/release/1.87.0/source/boost_1_87_0.tar.gz
- Decompress the source package.
tar -zxf boost_1_87_0.tar.gz
- 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.
- Obtain the software package.
wget https://archives.boost.io/release/1.87.0/source/boost_1_87_0.tar.gz
- Decompress the software package.
tar -zxf boost_1_87_0.tar.gz
- Go to the directory after the decompression.
cd boost_1_87_0
- Run the bootstrap.sh script and set related parameters.
./bootstrap.sh --with-libraries=all --with-toolset=gcc
- Perform the compilation.
./b2 toolset=gcc
- Install the Boost.
./b2 install --prefix=/usr
After the installation is complete, the following information is displayed:

- Update the dynamic link libraries in the system.
ldconfig
Parent topic: Configuring the Compilation Environment