From 31dfc196fcc50fed41778698fa61b7a1f7c0ea40 Mon Sep 17 00:00:00 2001 From: Jan Schmidt Date: Mon, 1 Nov 2021 01:15:28 +1100 Subject: [PATCH] Add a script to install deps on Fedora --- scripts/install_deps.sh | 7 ++++++- scripts/install_fedora_deps.sh | 3 +++ 2 files changed, 9 insertions(+), 1 deletion(-) create mode 100755 scripts/install_fedora_deps.sh diff --git a/scripts/install_deps.sh b/scripts/install_deps.sh index 0625bdd..3fae908 100755 --- a/scripts/install_deps.sh +++ b/scripts/install_deps.sh @@ -14,5 +14,10 @@ DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )" if [[ "$OSTYPE" == "darwin"* ]]; then ${DIR}/install_mac_os_deps.sh else -${DIR}/install_ubuntu_deps.sh + DISTRO=$( awk -F= '/^ID/{print $2}' /etc/os-release ) + if [ "$DISTRO" == "fedora" ]; then + ${DIR}/install_fedora_deps.sh + else + ${DIR}/install_ubuntu_deps.sh + fi fi diff --git a/scripts/install_fedora_deps.sh b/scripts/install_fedora_deps.sh new file mode 100755 index 0000000..a7c2fba --- /dev/null +++ b/scripts/install_fedora_deps.sh @@ -0,0 +1,3 @@ +#!/bin/sh + +sudo dnf install -y gcc g++ cmake git tbb-devel eigen3-devel glew-devel ccache libjpeg-turbo-devel libpng-devel lz4-devel bzip2-devel boost-regex boost-filesystem boost-date-time boost-program-options gtest-devel opencv-devel