diff options
author | kelly-cs <likai31197@gmail.com> | 2022-09-09 21:25:29 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2022-09-09 22:38:33 +0000 |
commit | c8aca63ac26e0a18a89ed49c4da33aff4328fb52 (patch) | |
tree | 18cdda75ef599507d84a94e4cbd553e33619c0f1 /docs | |
parent | 18c39bc1e395412f1aa69d98a1ac1e39bfa48d9b (diff) | |
download | mongo-c8aca63ac26e0a18a89ed49c4da33aff4328fb52.tar.gz |
SERVER-68160 Add note to building.md to consider using -j parameter for building from source on memory-constrained systems
Diffstat (limited to 'docs')
-rw-r--r-- | docs/building.md | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/docs/building.md b/docs/building.md index c37b31d5e53..d542c789638 100644 --- a/docs/building.md +++ b/docs/building.md @@ -78,6 +78,10 @@ errors. To ignore the warnings, pass the switch $ python3 buildscripts/scons.py install-mongod --disable-warnings-as-errors +***Note***: On memory-constrained systems, you may run into an error such as `g++: fatal error: Killed signal terminated program cc1plus`. To use less memory during building, pass the parameter `-j1` to scons. This can be incremented to `-j2`, `-j3`, and higher as appropriate to find the fastest working option on your system. + + $ python3 buildscripts/scons.py install-mongod -j1 + To install `mongod` directly to `/opt/mongo` $ python3 buildscripts/scons.py DESTDIR=/opt/mongo install-mongod |