mongodb环境搭建
来源:互联网 发布:win10视频制作软件 编辑:程序博客网 时间:2024/05/31 00:40
之前搭建过mongodb开发环境,操作系统都是在32位系统下。昨天找了张64位win7系统,在虚拟机上安装了,32位系统跑64位虚拟机,没问题。开发环境还是在32位系统下,数据服务部署在了64win7下。
一直以来用的是C/C++,mongodb的C++driver还得自己编译,不过也方便。首先备齐软件,如下(引用):
Get the MongoDB Source Code
Download the source code from Downloads.
Or install Git. Then:
git clone git://github.com/mongodb/mongo.git (more info)
git tag -l to see tagged version numbers
Switch to a stable branch (unless doing development) -- an even second number indicates "stable". (Although with sharding you will want the latest if the latest is less than 1.6.0.) For example:
git checkout r1.4.1
Get Boost Libraries
Click here for a prebuilt boost library for Visual Studio. 7zip format. This file has what you need to build MongoDB, but not some other boost libs, so it's partial. Uncompress this to the c:\boost directory. Your actual files are in c:\boost\boost
See the Boost and Windows page for other options. Use v1.42 or higher with VS2010.
Get SpiderMonkey
Download prebuilt libraries and headers here for VS2010. Place these files in ../js/ relative to your mongo project directory.
Or (more work) build SpiderMonkey js.lib yourself – details here.
值得注意的是:
1、SCons安装:首先安装python,之后安装exe版的scons,然后将python的脚本路径添加到path下,如"C:\Python26\Scripts”。
2、在执行scons mongoclient.lib 时,可能会调用首先找到的VS环境,从而导致之后的test会调用多个版本的boost库,因此首先屏蔽掉vs2010以外的库(临时改名的方式)
。
测试通过后,基本环境就是64位数据服务,32位调试环境。
下一篇着手矢量要素入库与效率分析。
- mongodb环境搭建
- Mongodb 环境搭建
- mongodb的环境搭建
- Node+Mongodb环境搭建
- MongoDb环境搭建
- mongodb环境搭建
- MongoDB安装环境搭建
- mongoDB CentOS7环境搭建
- MongoDB 环境搭建
- MongoDB环境搭建
- MongoDb(一)--环境搭建
- 【MongoDB】 MongoDB环境的搭建(Windows)
- MongoDB与PHP -- 环境搭建
- 初学mongodb笔记-搭建环境
- MongoDB C++开发环境搭建
- mongoDb c++ 开发环境搭建
- MongoDB C++ 开发环境搭建
- Spring Data MongoDB 环境搭建
- Strcat,strcpy,strcmp,Strlen函数原型-实现
- java高级基础备忘
- Android MediaPlayer 分析- MediaPlayerService.cpp
- 在Android中使用Handler和Thread线程执行后台操作
- Posix 多线程编程—线程属性
- mongodb环境搭建
- jQuery验证用户注册信息
- vim配置
- Android来电拦截及拦截后的提示音
- centos 6.0用yum安装中文输入法
- matlab pack 清理内存
- 学习php源码
- 来信, 创业 和 移动互联网
- Benes Network在LDPC解码中的应用1