How to compile the NOSQL MongoDB C driver for Ubuntu Linux
This was a massive choice to complete but I did it within this Codelite IDE
Join my FREE newsletter to learn more about using MongoDB in your automated trading
Build C++ MongoDB Driver
https://github.com/mongodb/mongo-cxx-driver/wiki/Quickstart-Guide-%28New-Driver%29
Need Cmake 3.2
http://askubuntu.com/questions/610291/how-to-install-cmake-3-2-on-ubuntu-14-04
sudo apt-get install software-properties-common
sudo add-apt-repository ppa:george-edison55/cmake-3.x
sudo apt-get update
When cmake is not yet installed:
sudo apt-get install cmake
Might be better to build the Mongo C Driver
https://github.com/mongodb/mongo-c-driver
Get latest tarball here https://github.com/mongodb/mongo-c-driver/releases
Library is created in /home/caustic/cpp/mongo-c-driver-1.3.5
If you are tight on driver space with MongoDB daemon, you could use:
sudo mongod –dbpath ~/mongodb-data –smallfiles