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;

相关推荐
不剪发的Tony老师9 天前
国产数据库之GaussDB:固若金汤
数据库·gaussdb
DarkAthena10 天前
【GaussDB】分析GaussDB在coredump后,部分应用连接假死的问题
gaussdb
Gauss松鼠会15 天前
【GaussDB】GaussDB重要通信参数汇总
服务器·网络·数据库·sql·性能优化·gaussdb·经验总结
Gauss松鼠会16 天前
【GaussDB】GaussDB SMP特性调优详解
java·服务器·前端·数据库·sql·算法·gaussdb
纬领网络19 天前
安装diff-gaussian-rasterization模块技巧方法
gaussdb·diff·rasterization
DarkAthena1 个月前
【GaussDB】会话里出现大量idle in transaction状态的问题排查
gaussdb
Gauss松鼠会1 个月前
GaussDB(DWS)性能问题处理套路
服务器·数据库·postgresql·性能优化·gaussdb
Gauss松鼠会1 个月前
GaussDB(DWS) SQL性能问题案例集
java·数据库·经验分享·spring boot·后端·sql·gaussdb
Gauss松鼠会1 个月前
GaussDB(DWS)数据融合:Oracle增量数据迁移到DWS
java·数据库·算法·oracle·性能优化·gaussdb
DarkAthena1 个月前
【GaussDB】 keep聚合SQL 性能优化分析:从 123s 到 18s 的优化之路
gaussdb