Home  >  Article  >  Database  >  MongoDB4.6.1c++driver编译

MongoDB4.6.1c++driver编译

WBOY
WBOYOriginal
2016-06-07 15:56:051331browse

这个版本已经和之前不一样了,有专门的github的项目。 首先获取源代码: git clone https://github.com/mongodb/mongo-cxx-driver.git git checkout 26compat scons --prefix=/usr --use-system-boost --sharedclient --full install-mongoclient # ls build

这个版本已经和之前不一样了,有专门的github的项目。

首先获取源代码:

git clone https://github.com/mongodb/mongo-cxx-driver.git
git checkout 26compat
scons --prefix=/usr --use-system-boost --sharedclient --full install-mongoclient
# ls build/linux2/use-system-boost/libmongoclient.a -alh
-rw-r--r-- 1 root root 57M  5月 10 23:35 build/linux2/use-system-boost/libmongoclient.a
# ls build/linux2/use-system-boost/libmongoclient.so -alh
-rwxr-xr-x 1 root root 20M  5月 10 23:37 build/linux2/use-system-boost/libmongoclient.so
# ls /usr/lib/libmongoclient.* -alh
-rw-r--r-- 1 root root 57M  5月 10 23:35 /usr/lib/libmongoclient.a
-rwxr-xr-x 1 root root 20M  5月 10 23:37 /usr/lib/libmongoclient.so
# ls /usr/include/mongo/ base bson buildinfo.cpp client db logger pch.cpp pch.h platform s scripting server.h shell targetver.h util经过了两年的等待,终于MongoDB 的C++ driver像一个正常的产品了。 
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Previous article:数据挖掘之七种常用的方法Next article:undo数据库