From: Kefu Chai Date: Fri, 10 Nov 2017 01:32:13 +0000 (+0800) Subject: install-deps.sh: install devtoolset-7 for centos/rhel X-Git-Tag: v13.0.2~867^2~3 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=f9aa49cee15cd571a8dc2efcd46a54b0a1f68f89;p=ceph.git install-deps.sh: install devtoolset-7 for centos/rhel ready them for gcc7 and libstdc++-7 for better performance. Signed-off-by: Kefu Chai --- diff --git a/install-deps.sh b/install-deps.sh index 35b054f42b1c..d28ddb382a87 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 ;;