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;

相关推荐
DarkAthena1 天前
【GaussDB】把GaussDB开发者版本做成88MB的docker镜像
docker·gaussdb
Gauss松鼠会4 天前
GaussDB 整体架构解析
运维·服务器·网络·数据库·sql·架构·gaussdb
Gauss松鼠会4 天前
GaussDB 中 gsql 与 DBeaver(JDBC)客户端工具查询时间不一致:原因、排查与处理
运维·服务器·数据库·sql·gaussdb·经验总结
hyunbar6 天前
华为云 GaussDB(DWS) 和 PG 的谓词下推有何差异
华为云·gaussdb·dws
Gauss松鼠会11 天前
GaussDB 内存相关参数及故障诊断
运维·数据库·sql·oracle·性能优化·架构·gaussdb
Gauss松鼠会24 天前
【GaussDB】破除gaussdb ugin索引支持中文模糊查询的迷思-字符序
java·运维·服务器·网络·数据库·gaussdb·经验总结
-madongyu-1 个月前
GaussDB 存储引擎:Ustore vs Astore、页式 vs 段页式
gaussdb
-madongyu-1 个月前
HCIE-GaussDB V2.0 笔试考点总览:模块权重、核心要点与高频数字速记
数据库·华为·gaussdb
-madongyu-1 个月前
GaussDB SQL 执行引擎:查询重写、优化器与执行器
数据库·sql·gaussdb
-madongyu-1 个月前
GaussDB 性能调优:等待事件、慢 SQL 定位与关键参数
数据库·sql·gaussdb