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
- Cross Compili

本文详细介绍了在Linux环境下安装MongoDB的C++驱动前需要先安装C版驱动的步骤,包括使用apt-get安装依赖,下载并编译C驱动,然后安装C++驱动,涉及cmake配置和解决库文件找不到的问题。
最低0.47元/天 解锁文章
379

被折叠的 条评论
为什么被折叠?



