We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 160846e commit be6a63cCopy full SHA for be6a63c
misc/tools.func
@@ -658,6 +658,15 @@ function setup_mongodb() {
658
DISTRO_ID=$(awk -F= '/^ID=/{ gsub(/"/,"",$2); print $2 }' /etc/os-release)
659
DISTRO_CODENAME=$(awk -F= '/^VERSION_CODENAME=/{ print $2 }' /etc/os-release)
660
661
+ # Check AVX support
662
+ if ! grep -qm1 'avx[^ ]*' /proc/cpuinfo; then
663
+ local major="${MONGO_VERSION%%.*}"
664
+ if ((major > 5)); then
665
+ msg_error "MongoDB ${MONGO_VERSION} requires AVX support, which is not available on this system."
666
+ return 1
667
+ fi
668
669
+
670
case "$DISTRO_ID" in
671
ubuntu)
672
MONGO_BASE_URL="https://repo.mongodb.org/apt/ubuntu"
0 commit comments