Add a script to install deps on Fedora

This commit is contained in:
Jan Schmidt 2021-11-01 01:15:28 +11:00 committed by Mateo de Mayo
parent e827866904
commit 31dfc196fc
2 changed files with 9 additions and 1 deletions

View File

@ -13,6 +13,11 @@ DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
if [[ "$OSTYPE" == "darwin"* ]]; then
${DIR}/install_mac_os_deps.sh
else
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

3
scripts/install_fedora_deps.sh Executable file
View File

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