Skip to content

Unable to compile due to boost-json/boost-beast #4717

@kiletic

Description

@kiletic

With the introduction of boost-json and/or boost-beast dependency from #4706 the project no longer compiles properly following the wiki for Debian 12 while using bookworm (stable). This is due to outdated libboost-all-dev which is at version 1.74.0.3 on apt:bookworm, as far as I know boost-json is introduced in version 1.75.

I tried to solve it by removing the installed libboost-all-dev from apt and manually building the 1.75 version, however it was also outdated --- missing some header files for boost-beast. Then I tried the newest version 1.85 and it also failed because the code is using some deprecated features lol

Anyways, I then picked 1.83 since it is also used on sid (unstable) and the project compiled successfully. Updating the wiki might be a good idea? I'll leave the steps I used to resolve this issue as a temporary solution for anyone else that might have the same issue.

  1. Remove the existing Boost 1.74 from your system:
sudo apt-get remove libboost-all-dev
  1. Download Boost 1.83 and enter the folder:
wget https://boostorg.jfrog.io/artifactory/main/release/1.83.0/source/boost_1_83_0.tar.gz
tar -xvzf boost_1_83_0.tar.gz
cd boost_1_83_0
  1. Install boost (warning: this might take a few minutes):
./bootstrap.sh --prefix=/usr/local
sudo ./b2 install

Note: If you're getting missing libraries errors from boost when running tfs you might need to run sudo ldconfig to update the cache.

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationincludes linting/annotations or overall documentation

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions