From 6927e67a6da64f9a5d0f3338561bbf3a7dd3502a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Markus=20M=C3=A4kel=C3=A4?= Date: Mon, 11 Jun 2018 14:54:20 +0300 Subject: [PATCH] Enable rhscl repo for RHEL 6 To use the devtoolset, we need to enable the rhscl repo if we are running RHEL 6. This fix most likely only works for the RHEL 6 images on AWS. --- BUILD/install_build_deps.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/BUILD/install_build_deps.sh b/BUILD/install_build_deps.sh index 33449aeb3..909fe08be 100755 --- a/BUILD/install_build_deps.sh +++ b/BUILD/install_build_deps.sh @@ -75,7 +75,12 @@ else if [ $? == 0 ] then # Enable the devtoolkit to get a newer compiler - sudo yum -y install centos-release-scl + + # CentOS: install the centos-release-scl repo + # RHEL: enable the existing repo (seems to be rhui-REGION-rhel-server-rhscl on AWS) + sudo yum -y install centos-release-scl || \ + sudo yum-config-manager --enable rhui-REGION-rhel-server-rhscl + sudo yum -y install devtoolset-4-gcc-c++ source /opt/rh/devtoolset-4/enable