Skip to content

install_boost

Takatoshi Kondo edited this page Sep 23, 2021 · 4 revisions

Install boost

msgpack-c (C++) requires boost libraries.

Minimal install

If you just want to use msgpack-c, you need only header-only boost libraries.

component link
assert https://github.com/boostorg/assert
numeric_conversion https://github.com/boostorg/numeric_conversion
variant https://github.com/boostorg/variant
utility (string_ref, string_view) https://github.com/boostorg/utility
fusion https://github.com/boostorg/fusion
optional https://github.com/boostorg/optional
predef https://github.com/boostorg/predef
preprosessor https://github.com/boostorg/preprocessor

MSGPACK_USE_X3_PARSE is defined

component link
spirit(x3) https://github.com/boostorg/spirit

Download and add include path (No install required just place files)

  1. Download boost libraries https://www.boost.org/users/download/
  2. Add BOOST_PATH to your include path. BOOST_PATH is for example boost_1_77_0. It has boost sub-directory. In boost directory, all headers exist.

Using package manager

vcpkg

vcpkg install boost-assert boost-numeric-conversion boost-variant boost-utility boost-fusion boost-optional boost-predef boost-preprocessor

For test:

vcpkg install boost-test

For examples:

vcpkg install boost-timer

yum

sudo yum install boost-devel

apt

sudo apt install libboost-all-dev

pkg

sudo pkg install boost-libs

pacman

pacman -S boost

Full install

It is required only you want to build and run tests and examples.

Download and install from source code

Using package manager

vcpkg

vcpkg install boost

yum

sudo yum install boost-devel

apt

sudo apt install libboost-all-dev

pkg

sudo pkg install boost-libs

pacman

pacman -S boost