之前写过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源码编译的过程请参考文章:《抢鲜体验2:openGauss从源码到主备》
《安装依赖》: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