Reputation: 8609
I need to build MongoDB C++ Driver. It needs Boost version at least 1.56, while my current Boost version is default Boost 1.54 (libboost-all-dev) on Ubuntu Trusty.
I can't find suitable PPAs. Is it possible to install Boost 1.56 on Ubuntu Trusty? or even better Boost 1.62?
Upvotes: 1
Views: 510
Reputation: 8609
Boost 1.56 is required for Boost polyfill, however, MongoDB C++ Driver can just be compiled using default MNMLSTC/core polyfill.
At Step 4 in https://mongodb.github.io/mongo-cxx-driver/mongocxx-v3/installation/. Use default polyfill insteaed of Boost polyfill.
MNMLSTC/core polyfill:
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr/local ..
Boost polyfill:
cmake -DCMAKE_BUILD_TYPE=Release -DBSONCXX_POLY_USE_BOOST=1 \
-DCMAKE_INSTALL_PREFIX=/usr/local ..
Upvotes: 2