暂无图片
openGauss编译支持postgis
最近更新:2022-03-11 14:21:05

之前写过openGauss支持oracle_fdw和mysql_fdw插件的文章:《opengauss1.0.1支持oracle_fdw和mysql_fdw》 本文介绍openGauss如何支持postgis扩展

本文参考链接:https://gitee.com/opengauss/openGauss-server/tree/master/third_party/dependency/postgis

系统环境

Centos7.6 x86_64

openGauss源码编译

openGauss源码编译的过程请参考文章:《抢鲜体验2:openGauss从源码到主备》

编译postgis(2.4.2)

《安装依赖》:http://postgis.net/docs/manual-2.4/postgis_installation.html#install_requirements

设置环境变量

su - omm
export GAUSSHOME=/opt/og
export PATH=$GAUSSHOME/bin:/usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin
export LD_LIBRARY_PATH=$GAUSSHOME/lib:/usr/local/lib:/usr/local/lib64:/usr/lib64
export toolhome=$GAUSSHOME/pggis_tools

下载postgis及相关依赖包

......