Merge pull request #227 from birwin88/master

Update linux_build.sh
This commit is contained in:
Yukino Song
2025-01-16 00:41:03 +08:00
committed by GitHub

View File

@@ -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"