3

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?

5
  • 2
    It means that the extensions (.so libraries) have not been installed, so you cannot enable them. (they should live in the same directory as the postgres libs) Commented Feb 20, 2015 at 12:40
  • How did you install the components? On what OS? Commented Feb 23, 2015 at 1:07
  • @dzordz Did you find a solution to your problem? If so, please share it here. Commented Jul 25, 2015 at 12:15
  • When you say you "installed" them, how did you do so? Build from source? Have you added /usr/local/lib to your /etc/ld.so.conf paths? Commented Sep 23, 2015 at 19:33
  • Run "find / -name liblwgeom-2.1.5.so" and see where the library actually is. Commented Sep 23, 2015 at 19:33

1 Answer 1

1

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
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.