KylinOS V10 SP3下编译openGauss与dolphin插件

编译环境

  • KylinOS v10 sp3
  • gcc 7.3.0
  • make 4.3
  • opengauss 5.0.0
mkdir -p /data/opengauss
cd /data/opengauss
git clone https://gitee.com/opengauss/openGauss-server.git
git clone https://gitee.com/opengauss/Plugin.git
wget -c https://opengauss.obs.cn-south-1.myhuaweicloud.com/5.0.0/binarylibs/openGauss-third_party_binarylibs_openEuler_arm.tar.gz
tar -xzvf openGauss-third_party_binarylibs_openEuler_arm.tar.gz
mv openGauss-third_party_binarylibs_openEuler_arm openGauss-server/binarylibs

export CODE_BASE=/data/opengauss/openGauss-server
export BINARYLIBS=/data/opengauss/openGauss-server/binarylibs
export GAUSSHOME=$CODE_BASE/dest/

yum install -y glibc-devel
yum install -y gcc make gcc-c++ libaio-devel flex bison libxml2-devel bison readline-devel ncurses-devel patch

cd openGauss-server
git checkout tags/v5.0.0
./configure --gcc-version=7.3.0 CC=g++ CFLAGS="-O2 -g3" --prefix=$GAUSSHOME --3rd=$BINARYLIBS --enable-thread-safety --with-readline --without-zlib
make -sj
make install -sj

cd Plugin
git checkout tags 5.0.0
cp -ar contrib/dolphin /data/opengauss/openGauss-server/contrib/
cd /data/opengauss/openGauss-server/contrib/dolphin
make install

编译好的包位于/data/opengauss/openGauss-server/dest中。

测试

create database test DBCOMPATIBILITY ‘B’; --创建mysql兼容模式的库
\c test
set enable_set_variable_b_format = on;
set dolphin.lower_case_table_names = 0;
set dolphin.B_COMPATIBILITY_MODE = on;
show tables;

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值