Skip to content

Instantly share code, notes, and snippets.

@Salamandar
Last active January 27, 2024 11:43
Show Gist options
  • Save Salamandar/c8fb1c831eca8e9adc77b2c7dc6bbb43 to your computer and use it in GitHub Desktop.
Save Salamandar/c8fb1c831eca8e9adc77b2c7dc6bbb43 to your computer and use it in GitHub Desktop.
Build mongodb on Debian without AVX
#!/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