Ubuntu trust上的Boost版本至少为1.56

Boost version at least 1.56 on Ubuntu Trusty

本文关键字:版本 trust 上的 Boost Ubuntu      更新时间:2023-10-16

我需要构建MongoDB c++驱动程序。它需要Boost版本至少1.56,而我目前的Boost版本是默认的Boost 1.54 (libboost-all-dev)在Ubuntu trust。

我找不到合适的ppa。是否可以在Ubuntu trust上安装Boost 1.56 ?或者更好的Boost 1.62?

Boost 1.56是Boost polyfill所必需的,然而,MongoDB c++驱动程序可以使用默认的MNMLSTC/core polyfill来编译。

在https://mongodb.github.io/mongo-cxx-driver/mongocxx-v3/installation/的步骤4。使用默认填充而不是Boost填充。

MNMLSTC/核心polyfill:

cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr/local ..

提高polyfill:

cmake -DCMAKE_BUILD_TYPE=Release -DBSONCXX_POLY_USE_BOOST=1 
-DCMAKE_INSTALL_PREFIX=/usr/local ..