Skip to content

Commit

Permalink
Add dependencies for centos 8 (#217)
Browse files Browse the repository at this point in the history
  • Loading branch information
amdkila authored May 20, 2020
1 parent ea69580 commit 1f57a2f
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ install_packages( )
# dependencies needed for library and clients to build
local library_dependencies_ubuntu=( "make" "cmake-curses-gui" "pkg-config" )
local library_dependencies_centos=( "epel-release" "make" "cmake3" "gcc-c++" "rpm-build" )
local library_dependencies_centos8=( "epel-release" "make" "cmake3" "gcc-c++" "rpm-build" )
local library_dependencies_fedora=( "make" "cmake" "gcc-c++" "libcxx-devel" "rpm-build" )
local library_dependencies_sles=( "make" "cmake" "gcc-c++" "libcxxtools9" "rpm-build" )

Expand Down Expand Up @@ -161,6 +162,7 @@ install_packages( )

local client_dependencies_ubuntu=( "gfortran" "libboost-program-options-dev" )
local client_dependencies_centos=( "devtoolset-7-gcc-gfortran" "boost-devel" )
local client_dependencies_centos8=( "gcc-gfortran" "boost-devel" )
local client_dependencies_fedora=( "gcc-gfortran" "boost-devel" )
local client_dependencies_sles=( "libboost_program_options1_66_0-devel" "pkg-config" "dpkg" )

Expand All @@ -178,10 +180,16 @@ install_packages( )
# yum -y update brings *all* installed packages up to date
# without seeking user approval
# elevate_if_not_root yum -y update
install_yum_packages "${library_dependencies_centos[@]}"

if [[ "${build_clients}" == true ]]; then
install_yum_packages "${client_dependencies_centos[@]}"
if [[ "${VERSION_ID}" == "8" ]]; then
install_yum_packages "${library_dependencies_centos8[@]}"
if [[ "${build_clients}" == true ]]; then
install_yum_packages "${client_dependencies_centos8[@]}"
fi
else
install_yum_packages "${library_dependencies_centos[@]}"
if [[ "${build_clients}" == true ]]; then
install_yum_packages "${client_dependencies_centos[@]}"
fi
fi
;;

Expand Down

0 comments on commit 1f57a2f

Please sign in to comment.