Closed ppKrauss closed 6 years ago
It looks like it's installed, but failing in executing the tests. You don't have a postgresql database user for the user you're executing as -- root. It would probably be good to use a different user, but if you're doing this in a Docker container, that makes sense.
createuser --createdb root (if there's another permissions-related error, you might need --superuser.. let me know)
You may also need to switch to the postgres user to run that command: sudo -u postgres createuser --createdb root
Hi, thanks the reply (!). Only a fast feedback, I not analysing in deep...
whoami
root
sudo -u postgres createuser --createdb root
could not change directory to "/root": Permission denied
createuser: creation of new role failed: ERROR: role "root" already exists
Try to run SQL tests directly, as you say "looks like installed",
CREATE LANGUAGE plpython3u;
ERROR: could not access file "$libdir/plpython3": No such file or directory
CREATE EXTENSION s2;
ERROR: language "plpython3u" does not exist
HINT: Use CREATE LANGUAGE to load the language into the database.
There are some clues at this old discussion... but I not see what to do. There are a a way to use plpythonu
instead plpython3u
?
It uses python3, so you need plpython3u
sudo apt-get install postgresql-plpython3-
Ok apt install postgresql-plpython3-10
was fine... and psql _etc_ < s2-postgis/sql/s2_test.sql
is running!
Thank you for all your patience and attention! (supposing that we must to close)
Hi, trying to install... After sucess with
sudo pip3 install s2sphere
, and at my~/sandbox/s2-postgis
cloned folder, using UBUNTU 16 LTS, runsudo make install && make installcheck
:So I do
sudo apt-get install postgresql-server-dev-all
... running againsudo make install && make installcheck
: