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;

相关推荐
xuekai200809015 天前
GaussDB一次小故障修复
gaussdb
Gauss松鼠会5 天前
GaussDB慢sql信息收集和执行计划查看
数据库·sql·gaussdb
小云数据库服务专线6 天前
GaussDB 应用侧报no pg_hba.conf entry for host处理方法
服务器·网络·gaussdb
小云数据库服务专线9 天前
GaussDB 应用侧报Read timed out解决方法
linux·服务器·gaussdb
小云数据库服务专线11 天前
GaussDB DN动态内存使用满导致DN主备切换
gaussdb
小云数据库服务专线11 天前
GaussDB 分布式下, 报错concurrent update under Stream mode is not yet support
gaussdb
Gauss松鼠会12 天前
【GaussDB】使用MySQL客户端连接到GaussDB的M-Compatibility数据库
数据库·mysql·gaussdb
clownAdam12 天前
gaussdb数据库的集中式和分布式
数据库·分布式·gaussdb
蒋士峰DBA修行之路18 天前
实验十八 GaussDB安全管理实验
gaussdb
蒋士峰DBA修行之路19 天前
实验二十一 GaussDB物理备份恢复
gaussdb