diff --git a/scripts/setup-ubuntu.sh b/scripts/setup-ubuntu.sh index 69760cf85ec0..60b37c3b2ad5 100755 --- a/scripts/setup-ubuntu.sh +++ b/scripts/setup-ubuntu.sh @@ -119,11 +119,20 @@ function install_fbthrift { function install_conda { mkdir -p conda && cd conda - wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh + ARCH=$(uname -m) + + if [ "$ARCH" != "x86_64" ] && [ "$ARCH" != "aarch64" ]; then + echo "Unsupported architecture: $ARCH" + exit 1 + fi + + wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-$ARCH.sh + MINICONDA_PATH=/opt/miniconda-for-velox - bash Miniconda3-latest-Linux-x86_64.sh -b -p $MINICONDA_PATH + bash Miniconda3-latest-Linux-$ARCH.sh -b -p $MINICONDA_PATH } + function install_velox_deps { run_and_time install_fmt run_and_time install_folly