Postgis not found

Hi! I’ve been trying to get Github Actions working with postgres+postgis but I couldn’t get them working together yet. It seems that my postgis has not been found.

So far, I tried to:

* Have postgres as my service and install manually (apt-get) postgis

ERROR: could not open extension control file "/usr/share/postgresql/10/extension/postgis.control": No such file or directory

* Use a Docker image that have a postgres instance with postgis setup

2019/09/14 13:18:19 pq: type "geography" does not exist

I also tried to use different versions for Ubuntu, postgres and postgis. No luck.

Any thoughts?

This looks like an issue in the way that postgis is packaged.  I think that you need to install the package that contains postgis.control manually.  You can do this by:

sudo apt-get install postgresql-10-postgis-scripts
2 Likes