[postgis-users] ERROR: could not access file "$libdir/postgis-1.5"
Sandro Santilli
strk at keybit.net
Fri Sep 7 00:43:17 PDT 2012
On Fri, Sep 07, 2012 at 10:45:02AM +0400, Sergey wrote:
> On Wednesday 05 September 2012, Sergey wrote:
>
> > > > ERROR: could not access file "$libdir/postgis-1.5": No such file or directory
> > > > SQL state: 58P01
>
> I attempted to change $libdir to hardcoded path in postgis.sql and create symlink
> to postgis-1.5.so just in case. It did not help:
>
> $ ls /usr/lib/pgsql/postgis-1.5*
> /usr/lib/pgsql/postgis-1.5 /usr/lib/pgsql/postgis-1.5.so
> -bash-3.2$ ls -l /usr/lib/pgsql/postgis-1.5*
> lrwxrwxrwx 1 root root 14 Sep 6 11:02 /usr/lib/pgsql/postgis-1.5 -> postgis-1.5.so
> -rw-r--r-- 1 root root 541888 Apr 19 20:39 /usr/lib/pgsql/postgis-1.5.so
>
> $ psql -f /usr/share/pgsql/contrib/postgis-1.5/postgis.sql -d noc
> SET
> BEGIN
> psql:/usr/share/pgsql/contrib/postgis-1.5/postgis.sql:59: ERROR: could not access file "/usr/lib/pgsql/postgis-1.5": No such file or directory
> psql:/usr/share/pgsql/contrib/postgis-1.5/postgis.sql:65: ERROR: current transaction is aborted, commands ignored until end of transaction block
> <...>
If you hard-code, try including the ".so" suffix.
Also see if ``ldd /usr/lib/pgsql/postgis-1.5.so`` works
(and gives you no 'not found').
--strk;
More information about the postgis-users
mailing list