fbpx

How to compile the NOSQL MongoDB C driver for Ubuntu Linux

(Last Updated On: May 31, 2016)

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

NOTE I now post my TRADING ALERTS into my personal FACEBOOK ACCOUNT and TWITTER. Don't worry as I don't post stupid cat videos or what I eat!

Subscribe For Latest Updates

Sign up to best of business news, informed analysis and opinions on what matters to you.
Invalid email address
We promise not to spam you. You can unsubscribe at any time.

NOTE!

Check NEW site on stock forex and ETF analysis and automation

Scroll to Top