1。安装C++版驱动之前,先安装C版的驱动,过程如下:
我的安装平台:ubuntu14.04 64位,其他平台可参考:http://api.mongodb.org/c/current/installing.html#installing-unix(1) 安装PDK:
点击(此处)折叠或打开
- sudo apt-get install pkg-config libssl-dev libsasl2-dev
点击(此处)折叠或打开
- $ wget https://github.com/mongodb/mongo-c-driver/releases/download/1.3.0/mongo-c-driver-1.3.0.tar.gz
- $ tar xzf mongo-c-driver-1.3.0.tar.gz
- $ cd mongo-c-driver-1.3.0
- $ ./configure
点击(此处)折叠或打开
- libmongoc was configured with the following options:
- Build configuration:
- Enable debugging (slow) : no
- Compile with debug symbols (slow) : no
- Enable GCC build optimization : yes
- Enable automatic binary hardening : yes
- Code coverage support : no