mirror of
https://github.com/midoks/mdserver-web.git
synced 2026-10-18 23:45:52 +08:00
update
This commit is contained in:
@@ -152,13 +152,13 @@ Install_mysql()
|
||||
cd ${mysqlDir}/mysql-5.5.62 && patch -p1 < ${rootPath}/plugins/mysql/patch/mysql-5.5-fix-arm-client_plugin.patch
|
||||
fi
|
||||
|
||||
if [ "$OSNAME" == "ubuntu" ];then
|
||||
if [ "$OSNAME" = "ubuntu" ];then
|
||||
Install_dep
|
||||
fi
|
||||
|
||||
OPTIONS=''
|
||||
|
||||
if [ "$OSNAME" == "debian" ] && [ "$VERSION_ID" == "13" ];then
|
||||
if [ "$OSNAME" = "debian" ] && [ "$VERSION_ID" = "13" ];then
|
||||
Install_dep_debain13
|
||||
# export CFLAGS="-D__s64=long long -D__u64='unsigned long long' -D__s32=int -D__u32='unsigned int' -D__u16='unsigned short'"
|
||||
# export CXXFLAGS="$CFLAGS"
|
||||
|
||||
@@ -174,11 +174,11 @@ Install_mysql()
|
||||
WHERE_DIR_GPP=`which g++`
|
||||
fi
|
||||
|
||||
if [ "$OSNAME" == "ubuntu" ];then
|
||||
if [ "$OSNAME" = "ubuntu" ];then
|
||||
Install_dep
|
||||
fi
|
||||
|
||||
if [ "$OSNAME" == "debian" ] && [ "$VERSION_ID" == "13" ];then
|
||||
if [ "$OSNAME" = "debian" ] && [ "$VERSION_ID" = "13" ];then
|
||||
Install_dep_debain13
|
||||
fi
|
||||
|
||||
|
||||
@@ -130,7 +130,7 @@ Install_mysql()
|
||||
|
||||
WHERE_DIR_GCC=/usr/bin/gcc
|
||||
WHERE_DIR_GPP=/usr/bin/g++
|
||||
if [ "$OSNAME" == "centos" ] && [ "$VERSION_ID" == "7" ];then
|
||||
if [ "$OSNAME" = "centos" ] && [ "$VERSION_ID" = "7" ];then
|
||||
yum install -y libudev-devel
|
||||
yum install -y centos-release-scl
|
||||
yum install -y devtoolset-11-gcc devtoolset-11-gcc-c++ devtoolset-11-binutils
|
||||
@@ -142,7 +142,7 @@ Install_mysql()
|
||||
echo $WHERE_DIR_GPP
|
||||
fi
|
||||
|
||||
if [ "$OSNAME" == "ubuntu" ] && [ "$VERSION_ID" == "18.04" ];then
|
||||
if [ "$OSNAME" = "ubuntu" ] && [ "$VERSION_ID" = "18.04" ];then
|
||||
apt install -y libudev-dev
|
||||
apt install -y libtirpc-dev
|
||||
apt install -y libssl-dev
|
||||
|
||||
@@ -130,7 +130,7 @@ Install_mysql()
|
||||
|
||||
WHERE_DIR_GCC=/usr/bin/gcc
|
||||
WHERE_DIR_GPP=/usr/bin/g++
|
||||
if [ "$OSNAME" == "centos" ] && [ "$VERSION_ID" == "7" ];then
|
||||
if [ "$OSNAME" = "centos" ] && [ "$VERSION_ID" = "7" ];then
|
||||
yum install -y libudev-devel
|
||||
yum install -y centos-release-scl
|
||||
yum install -y devtoolset-11-gcc devtoolset-11-gcc-c++ devtoolset-11-binutils
|
||||
@@ -142,7 +142,7 @@ Install_mysql()
|
||||
echo $WHERE_DIR_GPP
|
||||
fi
|
||||
|
||||
if [ "$OSNAME" == "ubuntu" ];then
|
||||
if [ "$OSNAME" = "ubuntu" ];then
|
||||
apt install -y libudev-dev
|
||||
apt install -y libtirpc-dev
|
||||
apt install -y libssl-dev
|
||||
@@ -164,7 +164,7 @@ Install_mysql()
|
||||
fi
|
||||
|
||||
|
||||
if [ "$OSNAME" == "opensuse" ];then
|
||||
if [ "$OSNAME" = "opensuse" ];then
|
||||
zypper install -y gcc11
|
||||
zypper install -y gcc11-c++
|
||||
|
||||
|
||||
@@ -171,7 +171,7 @@ Install_mysql()
|
||||
fi
|
||||
|
||||
|
||||
if [ "$OSNAME" == "opensuse" ];then
|
||||
if [ "$OSNAME" = "opensuse" ];then
|
||||
zypper install -y gcc11
|
||||
zypper install -y gcc11-c++
|
||||
|
||||
|
||||
@@ -144,7 +144,7 @@ Install_mysql()
|
||||
echo $WHERE_DIR_GPP
|
||||
fi
|
||||
|
||||
if [ "$OSNAME" == "ubuntu" ];then
|
||||
if [ "$OSNAME" = "ubuntu" ];then
|
||||
apt install -y libudev-dev
|
||||
apt install -y libtirpc-dev
|
||||
apt install -y libssl-dev
|
||||
|
||||
@@ -170,7 +170,7 @@ Install_mysql()
|
||||
fi
|
||||
|
||||
|
||||
if [ "$OSNAME" == "opensuse" ];then
|
||||
if [ "$OSNAME" = "opensuse" ];then
|
||||
zypper install -y gcc11
|
||||
zypper install -y gcc11-c++
|
||||
|
||||
|
||||
Reference in New Issue
Block a user