KylinOS V10 SP3下编译openGauss与dolphin插件

编译环境

  • KylinOS v10 sp3
  • gcc 7.3.0
  • make 4.3
  • opengauss 5.0.0
shell 复制代码
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;

相关推荐
Gauss松鼠会3 天前
GaussDB 系统表与系统视图详解(内网运维版)
运维·服务器·网络·数据库·gaussdb·经验总结
DarkAthena8 天前
【GaussDB】内核事务异步提交(延迟清理)相关问题记录
gaussdb
羌俊恩8 天前
信创数据库之华为Gaussdb 概览
信创·gaussdb·国产化·数据库改造评估·gtm-lite
实战派K8S&DB10 天前
GaussDB 高可用演进:从流复制到 DCF 分布式共识
分布式·gaussdb
Gauss松鼠会19 天前
【GaussDB】GaussDB 组件、节点和AZ故障仲裁与切换流程
运维·服务器·数据库·gaussdb
DarkAthena1 个月前
【GaussDB】507内核版本新特性-视图失效重编译
gaussdb
Gauss松鼠会2 个月前
【GaussDB】GaussDB锁阻塞源头查询
java·开发语言·前端·数据库·算法·gaussdb·经验总结
xuekai200809012 个月前
GaussDB 单机安装记录
gaussdb
DarkAthena2 个月前
【GaussDB】507内核新特性-PLSQL字节码(一)
gaussdb