1.postgresql
postgres-# ; ERROR: could not open extension control file "/usr/pgsql-10/share/extension/postgis_topology.control": No such file or directory postgres=# CREATE EXTENSION postgis_topology ; ERROR: could not open extension control file "/usr/pgsql-10/share/extension/postgis_topology.control": No such file or directory
2. yum search postgis ; yum install -y postgis25_10(yum install -y postgis30_10)
3. 安装
postgres=# CREATE EXTENSION postgis_topology ; ERROR: required extension "postgis" is not installed HINT: Use CREATE EXTENSION ... CASCADE to install required extensions too. postgres=# CREATE EXTENSION postgis ; CREATE EXTENSION postgres=# CREATE EXTENSION postgis_topology ; CREATE EXTENSION