我遇到了安装postgis到现有数据库的问题。但是出现以下错误:
ERROR: could not load library "/usr/local/pgsql/lib/postgis-2.0.so": libgeos_c.so.1: cannot open shared object file: No such file or directory
/usr/local/pgsql/lib/postgis-2.0.so
中有postgis-2.0.so,没有问题。/usr/local/lib
中已安装libgeos_c.so.1
。那么问题出在哪里呢?
任何帮助都将不胜感激。
谢谢。
顺便说一下,我按照此教程安装了所有这些:
http://www.codingsteps.com/installing-and-configuring-postgresql-in-amazon-linux-ami/
更新
$ ldd /usr/local/lib/libgeos_c.so.1
linux-vdso.so.1 => (0x00007fff6f55b000)
libgeos-3.3.7.so => /usr/local/lib/libgeos-3.3.7.so (0x00007f53700d9000)
libstdc++.so.6 => /usr/lib64/libstdc++.so.6 (0x00007f536fdd0000)
libm.so.6 => /lib64/libm.so.6 (0x00007f536fb4c000)
libc.so.6 => /lib64/libc.so.6 (0x00007f536f7c0000)
libgcc_s.so.1 => /lib64/libgcc_s.so.1 (0x00007f536f5ab000)
/lib64/ld-linux-x86-64.so.2 (0x00007f537068d000)