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.gitcd mongo-c-driver./autogen.shmakesudo make install
参考 http://api.mongodb.org/c/current/tutorial.html#c-api https://github.com/mongodb/mongo-c-driver
posted on 2014-09-12 20:14 阅读( ...) 评论( ...)