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