Skip to content

Instantly share code, notes, and snippets.

@hanxue
Created May 31, 2018 04:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hanxue/a81cd5fac78bb8feb049ae9dce828a28 to your computer and use it in GitHub Desktop.
Save hanxue/a81cd5fac78bb8feb049ae9dce828a28 to your computer and use it in GitHub Desktop.
Compiling mongodb 3.4 using Linuxbrew on DigitalOcean
time HOMEBREW_TEMP=/mnt/vol1/tmp CXXFLAGS="--param ggc-min-expand=1 --param ggc-min-heapsize=2048" brew install mongodb@3.4 --verbose
Install file: "src/mongo-tools/mongotop" as "/home/linuxbrew/.linuxbrew/Cellar/mongodb@3.4/3.4.14/bin/mongotop"
chmod 755 /home/linuxbrew/.linuxbrew/Cellar/mongodb@3.4/3.4.14/bin/mongotop
scons: done building targets.
==> Cleaning
==> Finishing up
==> Caveats
This formula is keg-only, which means it was not symlinked into /home/linuxbrew/.linuxbrew,
because this is an alternate version of another formula.
If you need to have this software first in your PATH run:
echo 'export PATH="/home/linuxbrew/.linuxbrew/opt/mongodb@3.4/bin:$PATH"' >> ~/.bash_profile
==> Summary
/home/linuxbrew/.linuxbrew/Cellar/mongodb@3.4/3.4.14: 17 files, 2.0GB, built
in 99 minutes 37 seconds
real 99m39.474s
user 90m54.752s
sys 5m29.836s
hanxue@DO-SG-1:/mnt/vo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment