你的位置:首页 > 数据库

[数据库]在Windows下编译mongo


在Windows下编译mongo-c-driver 1.3.x

1.安装 MSYS2
https://sourceforge.net/projects/msys2/
2.安装 MinGW64
pacman -S mingw64
pacman -S mingw64/mingw-w64-x86_64-libtool
查找最新版automake
pacman -Ss automake
安装最新版automake
pacman -S msys/automake1.15
安装autoconf
pacman -S msys/autoconf
安装automake-wrapper
pacman -S msys/automake-wrapper
msys/make

4.下载mongo-c-driver
mongo-c-driver最新版
https://github.com/mongodb/mongo-c-driver/releases

3.下载libson
libson最新版
https://github.com/mongodb/libbson/releases
解压缩到mongo-c-driver/src/libbson目录下


5.运行msys2
6.挂载mongo-c-driver目录
umount -U /tmp
mount "mongo-c-driver展开目录" /tmp
7.编译mongo-c-driver
cd /tmp
./autogen.sh
./autogen.sh --with-libbson=bundled
make

搜索dll文件