diff options
author | Andrew Morrow <acm@mongodb.com> | 2019-02-02 14:50:52 -0500 |
---|---|---|
committer | Andrew Morrow <acm@mongodb.com> | 2019-02-04 15:25:06 -0500 |
commit | 3c293089cfe8950cb6b6f9ba2adc46eeeda32185 (patch) | |
tree | 669982511392ee50eea73b69fadf5a18ea336b22 /docs | |
parent | 43b85b28d70b301c6f18dcfa7550b640191719e1 (diff) | |
download | mongo-3c293089cfe8950cb6b6f9ba2adc46eeeda32185.tar.gz |
SERVER-39294 Update build requirements in building.md
Diffstat (limited to 'docs')
-rw-r--r-- | docs/building.md | 28 |
1 files changed, 11 insertions, 17 deletions
diff --git a/docs/building.md b/docs/building.md index ce9b82ca7c7..0349e0d38c0 100644 --- a/docs/building.md +++ b/docs/building.md @@ -3,17 +3,15 @@ Building MongoDB To build MongoDB, you will need: -* A modern C++ compiler. One of the following is required. - * GCC 5.4.0 or newer - * Clang 3.8 (or Apple XCode 8.3.2 Clang) or newer - * Visual Studio 2015 Update 3 or newer (See Windows section below for details) +* A modern C++ compiler capable of compiling C++17. One of the following is required: + * GCC 8.0 or newer + * Clang 7.0 (or Apple XCode 10.0 Clang) or newer + * Visual Studio 2017 version 15.9 or newer (See Windows section below for details) * On Linux and macOS, the libcurl library and header is required. MacOS includes libcurl. * Fedora/RHEL - `dnf install libcurl-devel` * Ubuntu/Debian - `apt-get install libcurl-dev` * Python 2.7.x and Pip modules: - * pyyaml - * typing - * cheetah + * See the section "Python Prerequisites" below. MongoDB supports the following architectures: arm64, ppc64le, s390x, and x86-64. More detailed platform instructions can be found below. @@ -51,7 +49,7 @@ If you only want to build the database: $ python2 buildscripts/scons.py mongod -***Note***: For C++ compilers that are newer than the supported version, the compiler may issue new warnings that cause MongoDB to fail to build since the build system treats compiler warnings as errors. To ignore the warnings, pass the switch --disable-warnings-as-errors to scons. +***Note***: For C++ compilers that are newer than the supported version, the compiler may issue new warnings that cause MongoDB to fail to build since the build system treats compiler warnings as errors. To ignore the warnings, pass the switch `--disable-warnings-as-errors` to scons. $ python2 buildscripts/scons.py mongod --disable-warnings-as-errors @@ -64,6 +62,8 @@ Please note that prebuilt binaries are available on [mongodb.org](http://www.mon SCons Targets -------------- +The following targets can be named on the scons command line to build only certain components: + * mongod * mongos * mongo @@ -76,13 +76,9 @@ Windows See [the windows build manual](https://github.com/mongodb/mongo/wiki/Build-Mongodb-From-Source#windows-specific-instructions) Build requirements: -* Visual Studio 2015 Update 2 or newer +* Visual Studio 2017 version 15.9 or newer * Python 2.7, ActiveState ActivePython 2.7.x Community Edition for Windows is recommended -If using VS 2015 Update 3, two hotfixes are required to build. For details, see: -* https://support.microsoft.com/en-us/help/3207317/visual-c-optimizer-fixes-for-visual-studio-2015-update-3 -* https://support.microsoft.com/en-za/help/4020481/fix-link-exe-crashes-with-a-fatal-lnk1000-error-when-you-use-wholearch - Or download a prebuilt binary for Windows at www.mongodb.org. Debian/Ubuntu @@ -114,17 +110,16 @@ FreeBSD Install the following ports: * devel/libexecinfo - * lang/clang38 + * lang/llvm70 * lang/python Optional Components if you want to use system libraries instead of the libraries included with MongoDB * archivers/snappy - * lang/v8 * devel/boost * devel/pcre -Add `CC=clang38 CXX=clang++38` to the `scons` options, when building. +Add `CC=clang70 CXX=clang++70` to the `scons` options, when building. OpenBSD -------------- @@ -133,4 +128,3 @@ Install the following ports: * devel/libexecinfo * lang/gcc * lang/python - |