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松鼠会8 天前
ElasticSearch迁移至openGauss
大数据·数据库·elasticsearch·jenkins·opengauss·gaussdb
Navicat中国10 天前
Mac 版不能连接华为 GaussDB 吗?我看 Windows 版可以连接?
数据库·信息可视化·navicat·gaussdb
Gauss松鼠会11 天前
GaussDB安全配置最佳实践:构建企业级数据防护体系
数据库·sql·安全·性能优化·database·gaussdb
Gauss松鼠会11 天前
GaussDB资源冻结与解冻:精细化资源管理的实践与策略
数据库·人工智能·sql·database·gaussdb
zhangxzq12 天前
华为高斯数据库(GaussDB)深度解析:国产分布式数据库的旗舰之作
数据库·分布式·gaussdb
Vic1010116 天前
GaussDB(PostgreSQL)查询执行计划参数解析技术文档
算法·哈希算法·gaussdb
DarkAthena16 天前
【GaussDB】使用DBLINK连接到ORACLE
数据库·oracle·gaussdb
Gauss松鼠会17 天前
从数据到智能:openGauss+openEuler Intelligence的RAG架构实战
数据库·架构·database·opengauss·gaussdb
Vic1010118 天前
创建索引:GaussDB(PostgreSQL)开发笔记
笔记·postgresql·gaussdb
淡定是个好东西22 天前
springboot连接高斯数据库(GaussDB)踩坑指南
数据库·gaussdb