From a2f66901369a07df4fee1049884f181f9b16bd8a Mon Sep 17 00:00:00 2001 From: Kefu Chai Date: Fri, 10 Nov 2017 09:32:13 +0800 Subject: [PATCH] install-deps.sh: install devtoolset-7 for centos/rhel ready them for gcc7 and libstdc++-7 for better performance. Signed-off-by: Kefu Chai (cherry picked from commit f9aa49cee15cd571a8dc2efcd46a54b0a1f68f89) --- install-deps.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/install-deps.sh b/install-deps.sh index 35b054f42b1c6..d28ddb382a875 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 ;; -- 2.39.5