Skip to content

Commit

Permalink
SERVER-68160 Add note to building.md to consider using -j parameter f…
Browse files Browse the repository at this point in the history
…or building from source on memory-constrained systems
  • Loading branch information
kelly-cs authored and Evergreen Agent committed Sep 9, 2022
1 parent 18c39bc commit c8aca63
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docs/building.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c8aca63

Please sign in to comment.