From a38ee4ac9ffdc92cf1c828567aba42f0bff8582e Mon Sep 17 00:00:00 2001 From: Puneet Kaushik Date: Mon, 10 Jun 2024 14:29:55 +0530 Subject: [PATCH] testing centos7 --- proxysql/build-binary-proxysql | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/proxysql/build-binary-proxysql b/proxysql/build-binary-proxysql index 46dc33032c..710a9b0f15 100755 --- a/proxysql/build-binary-proxysql +++ b/proxysql/build-binary-proxysql @@ -25,7 +25,14 @@ if [ -f /usr/bin/yum ]; then fi sudo yum -y install wget if [[ $RHEL -eq 7 ]]; then + sudo yum install -y centos-release-scl + sudo yum install -y devtoolset-7-gcc-c++ --enablerepo='centos-sclo-rh' + scl enable devtoolset-7 bash sudo yum -y install automake bzip2 cmake3 make gcc-c++ gcc git openssl openssl-devel gnutls gnutls-devel libtool patch libuuid libuuid-devel perl-IPC-Cmd + gcc --version + g++ --version + which gcc + which g++ if [ -f /usr/bin/cmake3 ]; then sudo mv /usr/bin/cmake /usr/bin/cmake2 sudo ln -s /usr/bin/cmake3 /usr/bin/cmake