From 2b10892a67732c40420ac6ac8cefbc84185ad314 Mon Sep 17 00:00:00 2001 From: midoks Date: Tue, 5 Jul 2022 14:44:51 +0800 Subject: [PATCH] Update install.sh --- plugins/mysql/versions/8.0/install.sh | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/plugins/mysql/versions/8.0/install.sh b/plugins/mysql/versions/8.0/install.sh index ee4cb75e8..8762b3d3b 100755 --- a/plugins/mysql/versions/8.0/install.sh +++ b/plugins/mysql/versions/8.0/install.sh @@ -120,14 +120,12 @@ Install_mysql() if [ "$OSNAME" == "centos" ] && [ "$VERSION_ID" == "7" ];then yum install centos-release-scl -y yum install devtoolset-9 -y - scl enable devtoolset-9 bash + # scl enable devtoolset-9 bash gcc --version - - WHERE_DIR_GCC=`which gcc` - WHERE_DIR_GPP=`which g++` + WHERE_DIR_GCC=/opt/rh/devtoolset-9/root/usr/bin/gcc + WHERE_DIR_GPP=/opt/rh/devtoolset-9/root/usr/bin/g++ echo $WHERE_DIR_GCC echo $WHERE_DIR_GPP - exit 1 fi if [ ! -d $serverPath/mysql ];then