mongoDb c driver

1,yum dependencies

Centos,RHEL Fedora:

$ sudo yum install git gcc automake autoconf libtool

Debian:

$ sudo apt-get install git gcc automake autoconf libtool

FreeBSD:

$ su -c 'pkg install git gcc automake autoconf libtool'

2,Fetch Sources and Build

git clone https://github.com/mongodb/mongo-c-driver.git
cd mongo-c-driver
./autogen.sh
make
sudo make install

参考
http://api.mongodb.org/c/current/tutorial.html#c-api
https://github.com/mongodb/mongo-c-driver

原文地址:https://www.cnblogs.com/ruiy/p/MongoDbCapi.html