代码拉取完成,页面将自动刷新
#/bin/bash
if [ -f ~/.bash_profile ] ; then
. ~/.bash_profile
fi
MAKE_JOBS=`lscpu | grep '^CPU(s)'|awk '{print $NF}'`
if [ ${MAKE_JOBS} -ge 16 ] ; then
MAKE_JOBS=`expr ${MAKE_JOBS} - 4`
else
MAKE_JOBS=`expr ${MAKE_JOBS} - 1`
fi
OPT_DIR=/opt
MYSQL_VERSION=8.4.4
RELEASE=4
GLIBC=`ldd --version | head -n 1 | awk '{print $NF}'`
ARCH=`uname -p`
OS=`grep '^ID=' /etc/os-release | sed 's/.*"\(.*\)".*/\1/ig'`
MAKELOG=/tmp/greatsqlsh-automake.log
MYSQL_USER=mysql
GREATSQLSH=greatsql-shell-${MYSQL_VERSION}-${RELEASE}-glibc${GLIBC}-${ARCH}
BASE_DIR=${OPT_DIR}/${GREATSQLSH}
GREATSQL_BUILD_DOWNLOAD_URL="https://product.greatdb.com/GreatSQL-Docker/deppkgs"
GREATSQLSH_BUILD_DOWNLOAD_URL="https://gitee.com/GreatSQL/GreatSQL-Docker/raw/greatsql-8.4.4-4/GreatSQL-Shell-Build"
BOOST_SRC_DOWNLOAD_URL="https://sourceforge.net/projects/boost/files/boost/1.77.0/"
MYSQL_SRC_DOWNLOAD_URL="https://downloads.mysql.com/archives/get/p/23/file"
MYSQLSH_SRC_DOWNLOAD_URL="https://downloads.mysql.com/archives/get/p/43/file"
JDK_DOWNLOAD_URL="https://github.com/oracle/graal/archive/refs/tags/jdk-23.0.1.zip"
DEPS="autoconf automake binutils bison cmake cyrus-sasl-devel cyrus-sasl-scram gcc-c++ \
gcc-toolset-11 gcc-toolset-11-annobin-plugin-gcc libcurl-devel libssh libssh-config libssh-devel \
libtirpc-devel libudev-devel libuuid libuuid-devel m4 make maven ncurses-devel openssl openssl-devel \
patch protobuf-lite python38 python38-devel python38-libs python38-pyyaml uuid wget zlib-devel brotli brotli-devel" \
V8_DEPS="deps-v8"
YUM_REPOS="yum-repos"
ANTLR="antlr4-4.10"
BOOST="boost_1_77_0"
MYSQL="mysql-8.4.4"
MYSQLSH="mysql-shell-8.4.4-src"
PATCHELF="patchelf-0.14.5"
PROTOBUF="protobuf-3.19.4"
MYSQL_PATCH="mysql-8.4.4.patch"
GREATSQLSH_PATCH="mysqlsh-for-greatsql-8.4.4.patch"
GREATSQLSH_MAKESH="greatsqlsh-automake.sh"
GREATSQLSH_ENV="greatsqlsh-setenv.sh"
JDK="graal-jdk-23.0.1"
GRAALVM="graalvm-community-openjdk-23.0.1+11.1"
if [ "`uname -p`" = "aarch64" ] ; then
RPCGEN="rpcgen-1.3.1-4.el8.aarch64.rpm"
GRAALVM_DOWNLOAD_URL="https://github.com/graalvm/graalvm-ce-builds/releases/download/jdk-23.0.1/graalvm-community-jdk-23.0.1_linux-aarch64_bin.tar.gz"
else
RPCGEN="rpcgen-1.3.1-4.el8.x86_64.rpm"
GRAALVM_DOWNLOAD_URL="https://github.com/graalvm/graalvm-ce-builds/releases/download/jdk-23.0.1/graalvm-community-jdk-23.0.1_linux-x64_bin.tar.gz"
fi
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。