编译MongoDB Source Code

3840阅读 0评论2013-07-23 mfc42d
分类:Windows平台

最近工作中要用到MongoDB,对于开源我一般都是编译源码的。
Download the source code from Downloads page

打开src目录下的mongodb.sln,使用vs2010 进行编译

使用SCons进行编译
先安装python 2.7,因为SCons不支持2.7以前的版本
下载
直接安装exe。

打开命令行
C:\Python27\Scripts\scons scons --release --64             // build mongod
scons --release --64 mongoclient.lib  // build C++ client driver library
scons --release --64 core             // build all end user components

--64 64位平台 --32 32位平台
--dd 建立debug版本
MongoDB 是个很不错的程序

上一篇:c语言调用java类
下一篇:IA64平台c语言函数参数入栈问题