dzordz
dzordz

Reputation: 2317

Postgres and PostGis , can not create extension

I have installed postgresql 9.4 and postgis 2.1.5, and also dependecies. But when I fire in my terminal:

sudo -u postgres psql -c "CREATE EXTENSION postgis; CREATE EXTENSION postgis_topology;" test_base

I get:

ERROR: could not load library "/usr/lib/postgresql/9.4/lib/postgis-2.1.so": liblwgeom-2.1.5.so: cannot open shared object file: No such file or directory

which tells me that I'm missing something, after some googling around I have not found any solution :(

Is someone have experience with this?

Upvotes: 3

Views: 1357

Answers (1)

Bart
Bart

Reputation: 504

I had the same problem on my Ubuntu 14.04 with postgresql 9.4

I reinstalled postgis and this solved the problem:

apt-get install postgis

Upvotes: 1

Related Questions