6月 182011
 

* 比较方便的办法是下载一个合适的二进制的mongodb的包,直接复制到合适的目录
* 自己编译安装:

  1. 首先, mongodb的编译是通过scons来构建的, 所以要先安装scons, 参考: http://www.scons.org/
  2. scons 是一个python工具,所以你要先安装python
  3. 假设你上面的已经安装成功了
  4. mongodb还依赖下面东西:
  • devel/boost
  • devel/libexecinfo
  • devel/pcre
  • lang/spidermonkey

  5. 假设你安装完了上面依赖, 好了, scons . ; 但愿你是幸运的

——————–
提示: boost安装可以使用yum:
yum install boost-devel

pcre的安装: http://www.pcre.org/

spidermonkey的安装: http://www.mongodb.org/display/DOCS/Building+Spider+Monkey

重要: gcc < 4编译不行

 Posted by at 上午 4:39

 Leave a Reply

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">

(required)

(required)

此站点使用Akismet来减少垃圾评论。了解我们如何处理您的评论数据