[postgis-devel] rtpostgis library search for old version of libgeos

Salvatore Larosa lrssvtml at gmail.com
Tue Nov 10 16:22:15 PST 2015


Hi,

On Wed, Nov 11, 2015 at 12:43 AM, Salvatore Larosa <lrssvtml at gmail.com> wrote:
> Hi all,
>
> I compiled (upgraded) postgis 2.2 and libgeos 3.5.0 sucessfully on my
> Debian Wheezy.
>  {postgis, topology}_upgrade.sql scripts run fine except
> rtpostgis_upgrade.sql which throws:
>
> rtpostgis_upgrade.sql:63: ERROR:  could not load library
> "/usr/local/pgsql/lib/rtpostgis-2.2.so": libgeos-3.4.2.so: cannot open
> shared object file: No such file or directory
>
> and after run ldconfig I see:
>
> $ ldd /usr/local/pgsql/lib/rtpostgis-2.2.so | grep libgeos
> libgeos_c.so.1 => /usr/local/lib/libgeos_c.so.1 (0x00007fa938578000)
> libgeos-3.4.2.so => not found
> libgeos-3.5.0.so => /usr/local/lib/libgeos-3.5.0.so (0x00007fa933233000)
>
> Why the rtpostgis library searching for libgeos 3.4.2?

problem (partially) resolved, I had to recompile GDAL against GEOS 3.5.0.
I now am getting the following:

psql:/home/sam/pacchetti_gis/postgis-2.2.0/raster/rt_pg/rtpostgis_upgrade.sql:1019:
NOTICE:  type "summarystats" is not yet defined
DETAIL:  Creating a shell type definition.
CREATE FUNCTION
psql:/home/sam/pacchetti_gis/postgis-2.2.0/raster/rt_pg/rtpostgis_upgrade.sql:1027:
ERROR:  SQL function cannot return shell type summarystats

Any hints?

-- 
Salvatore Larosa
linkedIn: http://linkedin.com/in/larosasalvatore
twitter: @lrssvt
skype: s.larosa
IRC: lrssvt on freenode



More information about the postgis-devel mailing list