Last active
January 27, 2024 11:43
-
-
Save Salamandar/c8fb1c831eca8e9adc77b2c7dc6bbb43 to your computer and use it in GitHub Desktop.
Build mongodb on Debian without AVX
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
sudo apt install git python-dev-is-python3 libssl-dev lld liblzma-dev python3-poetry | |
sudo apt install llvm clang lld | |
git clone https://github.com/GermanAizek/mongodb-without-avx | |
pushd mongodb-without-avx | |
pushd mongo | |
# Disable AVX requirements | |
patch -p1 SConstruct < ../o3_patch.diff | |
# Install Scons dependencies | |
poetry install --no-root --sync | |
# Run the actual build | |
# You might need to run it multiple times if it crashes due to ram / errors | |
poetry run buildscripts/scons.py install-mongod --disable-warnings-as-errors | |
popd | |
popd | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment