2009-11-19 16:49:34 +01:00
|
|
|
|
|
|
|
Building MongoDB
|
|
|
|
================
|
|
|
|
|
2010-05-02 01:52:44 +02:00
|
|
|
SCONS
|
2009-11-19 16:49:34 +01:00
|
|
|
|
|
|
|
For detail information about building, please see:
|
|
|
|
http://www.mongodb.org/display/DOCS/Building
|
|
|
|
|
|
|
|
If you want to build everything (mongod, mongo, tools, etc):
|
|
|
|
|
|
|
|
$ scons .
|
|
|
|
|
|
|
|
If you only want to build the database:
|
|
|
|
|
|
|
|
$ scons
|
|
|
|
|
|
|
|
To install
|
|
|
|
|
|
|
|
$ scons --prefix=/opt/mongo install
|
|
|
|
|
|
|
|
Please note that prebuilt binaries are available on mongodb.org and may be the easier way to get started.
|
|
|
|
|
2010-05-02 01:52:44 +02:00
|
|
|
SCONS TARGETS
|
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
|
|
|
|
|
|
|
|
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
|
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
|
2009-11-19 16:49:34 +01:00
|
|
|
|
|
|
|
scons libboost-dev libpcre++-dev xulrunner-1.9.1-dev
|
|
|
|
|
2010-05-02 01:52:44 +02:00
|
|
|
OS X
|
|
|
|
|
|
|
|
Try homebrew -- brew install mongodb.
|
|
|
|
|
|
|
|
FREEBSD
|
2009-11-19 16:49:34 +01:00
|
|
|
|
|
|
|
Install the following ports:
|
|
|
|
|
|
|
|
- devel/boost
|
|
|
|
- devel/libexecinfo
|
|
|
|
- devel/pcre
|
|
|
|
- lang/spidermonkey
|