i installed postgres on a new vps and then i installed postgis, but trying to create a postgis extension i always get this error:
create extension postgis;
ERROR: could not load library "/usr/lib/postgresql/10/lib/rtpostgis-2.4.so": /usr/lib/x86_64-linux-gnu/libssl.so.1.1: version `OPENSSL_1_1_1' not found (required by /usr/lib/x86_64-linux-gnu/libmysqlclient.so.20)
i have no idea how to solve it.
i also tried to install openssl and libssl-dev but didn't help
edit: i am using 18.04.4 LTS ubuntu
i install issuing:
sudo apt install postgresql postgresql-contrib
sudo add-apt-repository ppa:ubuntugis/ubuntugis-unstable
sudo apt-get update
sudo apt-get install postgis
sudo -u postgres psql -c "CREATE EXTENSION postgis"works fine.postgisdoes not place the libraries in the directories that postgres 10 looks in, whilepostgresql-10-postgis-3specifically copies the libraries to the postgres 10 directories. At least I remember having this problem many times and being able to solve it usingpostgresql-10-postgis-3(for v10).