1、安装postgis的依赖包

rpm -ivh https://mirrors.aliyun.com/epel/epel-release-latest-7.noarch.rpm

2、安装postgis

#postgis31_14中的14表示postgresql的版本是14

yum install postgis31_14.x86_64

3、安装完毕后切换为postgres用户,开启扩展

#开启插件  

su postgres  

psql  

#开启pgsql的插件  

create extension postgis;  

create extension postgis_topology;  

create extension fuzzystrmatch;  

create extension address_standardizer;  

create extension address_standardizer_data_us;  

create extension postgis_tiger_geocoder; 

4、安装pgRouting

使用 yum search pgrouting 命令可以看到多个版本的pgrouting,这里我选择了pgrouting14。

yum install pgrouting_14

5、参考网址

参考

原文链接:https://blog.csdn.net/wydydgh/article/details/124636946