From 98fb23cac0669708c0dac105040276a00b746cf8 Mon Sep 17 00:00:00 2001 From: birwin88 Date: Wed, 15 Jan 2025 09:40:29 -0600 Subject: [PATCH] Update linux_build.sh Trying to add support for Fedora 41 --- scripts/linux_build.sh | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/scripts/linux_build.sh b/scripts/linux_build.sh index 4cf4c101..24ec0227 100644 --- a/scripts/linux_build.sh +++ b/scripts/linux_build.sh @@ -300,11 +300,15 @@ function run_install() { add_debain_deps elif [ "$distro" == "ubuntu" ]; then add_ubuntu_deps - elif [ "$distro" == "fedora" ]; then + elif [ "$distro" == "fedora" ] && [ "$version" == "41" ]; then + add_fedora_deps + ${sudo_cmd} dnf group install "development-tools" -y + elif [ "$distro" == "fedora" ] && [ "$version" <= "40" ]; then add_fedora_deps ${sudo_cmd} dnf group install "Development Tools" -y fi + # Install the dependencies $package_install_command "${dependencies[@]}" @@ -456,6 +460,15 @@ elif grep -q "PLATFORM_ID=\"platform:f40\"" /etc/os-release; then cuda_build= gcc_version="13" nvm_node=0 +elif grep -q "PLATFORM_ID=\"platform:f41\"" /etc/os-release; then + distro="fedora" + version="41" + package_update_command="${sudo_cmd} dnf update -y" + package_install_command="${sudo_cmd} dnf install -y" + cuda_version= + cuda_build= + gcc_version="13" + nvm_node=0 elif grep -q "Ubuntu 22.04" /etc/os-release; then distro="ubuntu" version="22.04"