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;

相关推荐
小云数据库服务专线15 小时前
GaussDB 常用数值类型
数据库·gaussdb
小云数据库服务专线3 天前
GaussDB 数据库架构师修炼(十三)安全管理(1)-账号的管理
gaussdb
茁壮成长的露露3 天前
openGauss逻辑备份恢复工具gs_dump/gs_restore
数据库·gaussdb
茁壮成长的露露9 天前
openGauss单实例安装
数据库·gaussdb
小云数据库服务专线12 天前
GaussDB SQL执行计划详解
数据库·数据库架构·gaussdb
小云数据库服务专线13 天前
GaussDB 数据库设计规范
数据库·设计规范·gaussdb
Gauss松鼠会16 天前
GaussDB调优核心逻辑:分布式架构下的性能挑战
分布式·架构·gaussdb
小云数据库服务专线16 天前
GaussDB 约束的语法
数据库·sql·gaussdb
Borny鼎鼎16 天前
gaussdb demo示例
docker·gaussdb
DarkAthena17 天前
【GaussDB】内存资源告急:深度诊断一起“memory temporarily unavailable“故障
数据库·gaussdb