Possible bug in installation location for postgis
Hi,
I think I have found a bug with the postgis
package and its
installation location. I am using the official alpine-linux
docker
image to
run my django
app. The app requires postgis
so that I can install
the extension for postgis
in postgresql
10.1. I install postgis
from the testing
repository.
Problem
So I attach directly to the container and run the psql
command then:
CREATE EXTENSION IF NOT EXIST postgis;
ERROR: could not open extension control file "/usr/local/share/postgresql/extension/postgis.control": No such file or directory
… and this is because its actually located here:
/usr/share/postgresql/extension/postgis.control
Possible workarounds
It was suggested to me by @kaniini
over at #alpine-linux
to symlink
the file/directory. This removes the initial error - but fails on this
instead:
So I don’t find it an elegant or suitable solution.
ERROR: extension "postgis" has no installation script nor update path for version "2.4.1"
FYI: I am running django
2.0, and python3
with postgresql
.
Thoughts
Now I dont know if this is a bug in the packaging or if its just missing
something but any help would be appreciated :-) and sorry if I overused
the inline code highlight.
PS: Also I found this before, https://bugs.alpinelinux.org/issues/7772
but it suggests its a but with non-official alpine images. However I am
using the official one. Another reply there also states that it should
not be installed into /usr/local/share/postgresql
and that
/usr/share/postgresql/
is correct - but how do I actually make
postgresql respect that and look into the correct path instead?
Kind regards,
Niclas
(from redmine: issue id 8358, created on 2017-12-29, closed on 2018-01-02)