2009-11-19 16:49:34 +01:00
|
|
|
|
|
|
|
Building MongoDB
|
|
|
|
================
|
|
|
|
|
2010-05-02 01:52:44 +02:00
|
|
|
SCONS
|
2010-07-13 23:45:22 +02:00
|
|
|
---------------
|
|
|
|
|
|
|
|
For detail information about building, please see [the wiki](http://www.mongodb.org/display/DOCS/Building).
|
2009-11-19 16:49:34 +01:00
|
|
|
|
2010-07-13 23:45:22 +02:00
|
|
|
If you want to build everything (mongod, mongo, tools, etc):
|
2009-11-19 16:49:34 +01:00
|
|
|
|
2010-07-13 23:45:22 +02:00
|
|
|
$ scons .
|
2009-11-19 16:49:34 +01:00
|
|
|
|
2010-07-13 23:45:22 +02:00
|
|
|
If you only want to build the database:
|
2009-11-19 16:49:34 +01:00
|
|
|
|
2010-07-13 23:45:22 +02:00
|
|
|
$ scons
|
|
|
|
|
|
|
|
To install
|
2009-11-19 16:49:34 +01:00
|
|
|
|
2010-07-13 23:45:22 +02:00
|
|
|
$ scons --prefix=/opt/mongo install
|
2009-11-19 16:49:34 +01:00
|
|
|
|
2010-07-14 17:27:02 +02:00
|
|
|
Please note that prebuilt binaries are available on [mongodb.org](http://www.mongodb.org/downloads) and may be the easiest way to get started.
|
2009-11-19 16:49:34 +01:00
|
|
|
|
2010-05-02 01:52:44 +02:00
|
|
|
SCONS TARGETS
|
2010-07-13 23:45:22 +02:00
|
|
|
--------------
|
2009-11-19 17:20:03 +01:00
|
|
|
|
2010-05-02 01:52:44 +02:00
|
|
|
* mongod
|
|
|
|
* mongos
|
|
|
|
* mongo
|
|
|
|
* mongoclient
|
|
|
|
* all
|
2009-11-19 16:49:34 +01:00
|
|
|
|
2010-05-02 01:52:44 +02:00
|
|
|
COMPILER VERSIONS
|
2010-07-13 23:45:22 +02:00
|
|
|
--------------
|
2010-05-02 01:52:44 +02:00
|
|
|
|
|
|
|
Mongo has been tested with GCC 4.x and Visual Studio 2008 and 2010. Older versions
|
2009-11-19 16:49:34 +01:00
|
|
|
of GCC may not be happy.
|
|
|
|
|
2010-05-02 01:52:44 +02:00
|
|
|
WINDOWS
|
2010-07-13 23:45:22 +02:00
|
|
|
--------------
|
2009-11-19 16:49:34 +01:00
|
|
|
|
2010-05-02 01:52:44 +02:00
|
|
|
See http://www.mongodb.org/display/DOCS/Building+for+Windows
|
2009-11-19 16:49:34 +01:00
|
|
|
|
|
|
|
Build requirements:
|
|
|
|
- vc++ express or visual studio
|
|
|
|
- python 2.5 (for scons - 2.6 might be needed for some regression tests)
|
|
|
|
- scons
|
|
|
|
- boost 1.35 (or higher)
|
|
|
|
|
|
|
|
Or download a prebuilt binary for Windows at www.mongodb.org.
|
|
|
|
|
2010-05-02 01:52:44 +02:00
|
|
|
UBUNTU
|
2010-07-13 23:45:22 +02:00
|
|
|
--------------
|
|
|
|
|
|
|
|
scons libboost-dev libpcre++-dev xulrunner-1.9.1-dev
|
2009-11-19 16:49:34 +01:00
|
|
|
|
|
|
|
|
2010-05-02 01:52:44 +02:00
|
|
|
OS X
|
2010-07-13 23:45:22 +02:00
|
|
|
--------------
|
|
|
|
|
|
|
|
Try homebrew -- brew install mongodb.
|
2010-05-02 01:52:44 +02:00
|
|
|
|
|
|
|
|
|
|
|
FREEBSD
|
2010-07-13 23:45:22 +02:00
|
|
|
--------------
|
|
|
|
|
|
|
|
Install the following ports:
|
|
|
|
|
|
|
|
* devel/boost
|
|
|
|
* devel/libexecinfo
|
|
|
|
* devel/pcre
|
|
|
|
* lang/spidermonkey
|
2009-11-19 16:49:34 +01:00
|
|
|
|
|
|
|
|
2010-07-13 23:45:22 +02:00
|
|
|
Special Build Notes
|
|
|
|
--------------
|
|
|
|
* [debian etch on ec2](building.debian.etch.ec2.html)
|
|
|
|
* [open solaris on ec2](building.opensolaris.ec2.html)
|