Skip to content

install_boost

Takatoshi Kondo edited this page Sep 18, 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/include to your include path.

Using package manager

vcpkg

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

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
Clone this wiki locally