summaryrefslogtreecommitdiffstats
path: root/install-deps.sh
diff options
context:
space:
mode:
authorKefu Chai <kchai@redhat.com>2017-11-10 02:32:13 +0100
committerKefu Chai <kchai@redhat.com>2017-12-15 12:11:50 +0100
commita2f66901369a07df4fee1049884f181f9b16bd8a (patch)
tree9bb9a0247fd081e710aa171c27274b305b89b13a /install-deps.sh
parentcmake: disable FAIL_ON_WARNINGS for rocksdb (diff)
downloadceph-a2f66901369a07df4fee1049884f181f9b16bd8a.tar.xz
ceph-a2f66901369a07df4fee1049884f181f9b16bd8a.zip
install-deps.sh: install devtoolset-7 for centos/rhel
ready them for gcc7 and libstdc++-7 for better performance. Signed-off-by: Kefu Chai <kchai@redhat.com> (cherry picked from commit f9aa49cee15cd571a8dc2efcd46a54b0a1f68f89)
Diffstat (limited to '')
-rwxr-xr-xinstall-deps.sh7
1 files changed, 5 insertions, 2 deletions
diff --git a/install-deps.sh b/install-deps.sh
index 35b054f42b1..d28ddb382a8 100755
--- a/install-deps.sh
+++ b/install-deps.sh
@@ -1,4 +1,5 @@
#!/usr/bin/env bash
+# -*- mode:sh; tab-width:8; indent-tabs-mode:t -*-
#
# Ceph distributed storage system
#
@@ -132,8 +133,10 @@ else
$SUDO rm -f /etc/yum.repos.d/dl.fedoraproject.org*
if test $(lsb_release -si) = CentOS -a $MAJOR_VERSION = 7 ; then
$SUDO yum-config-manager --enable cr
- fi
- if test $(lsb_release -si) = VirtuozzoLinux -a $MAJOR_VERSION = 7 ; then
+ $SUDO yum install centos-release-scl
+ elif test $(lsb_release -si) = RedHatEnterpriseServer -a $MAJOR_VERSION = 7 ; then
+ $SUDO yum-config-manager --enable rhel-server-rhscl-7-rpms
+ elif test $(lsb_release -si) = VirtuozzoLinux -a $MAJOR_VERSION = 7 ; then
$SUDO yum-config-manager --enable cr
fi
;;