[geos-devel] Re: [postgis-users] Error compiling PostGIS + GEOS

Chip Masters chip_masters at yahoo.com
Wed Jul 6 15:47:29 EDT 2005


Here's a response from our sys admin who actually did
the install:

> Date:	 Wed, 06 Jul 2005 14:38:54 -0500
> From:	"Charles Smith" <charon at cyc.com>
> To:	"Chip Masters" <chip_masters at yahoo.com>
> Subject: Re: [geos-devel] Re: [postgis-users] Error 
> compiling PostGIS + GEOS
>
> Chip Masters wrote:
> >GEOS and PostGIS users,
> >
> >......
>
> Also, for the record, there were no errors or 
> warnings building any of those things, after solving

> all the dependencies and going back to gcc 3.3.4
(the 
> default that ships with 9.2). When I tried to build 
> it with 3.4.3, I couldn't even begin the compile.
But 
> after that it went without a hitch.
>
> -Charles

Chip

--- Chip Masters <chip_masters at yahoo.com> wrote:

> GEOS and PostGIS users,
> 
> Since I last posted on this thread about my
> installation problems, we upgraded our OS to SuSE
> 9.2
> with the 2.6.8-24.16-default kernel. Also, for the
> record, we are using gcc version 3.3.4.
> 
> Now after installing PostgreSQL 8.0.3, PostGIS 1.0.1
> with the flags set in Makefile.config to include
> PROJ
> and GEOS:
> 
> > USE_PROJ ?= 1
> > PROJ_DIR ?= /usr/local
> >
> > USE_GEOS ?= 1
> > GEOS_DIR ?= /usr/local
> 
> I try to do
> 
> > psql -f lwpostgis.sql -d test
> 
> from within the postgis-1.0.1 install directory, and
> I
> get this error:
> 
> > psql:lwpostgis.sql:36: ERROR:  could not load
> library > "/scratch/pgsql/lib/liblwgeom.so.1.0":
> libgeos.so.2: > cannot open shared object file: No
> such file or 
> > directory
> 
> I notice that the liblwgeom.so.1.0 library doesn't
> link to the geos or proj libraries:
> 
> > postgres at cyc11:~/lib> ldd liblwgeom.so.1.0 
> >         linux-gate.so.1 =>  (0xffffe000)
> >         libstdc++.so.5 => /usr/lib/libstdc++.so.5 
> > (0x40067000)
> >         libgeos.so.2 => not found
> >         libproj.so.0 => not found
> >         libgcc_s.so.1 => /lib/libgcc_s.so.1 
> > (0x40125000)
> >         libc.so.6 => /lib/tls/libc.so.6
> (0x4012d000)
> >         libm.so.6 => /lib/tls/libm.so.6
> (0x40243000)
> >         /lib/ld-linux.so.2 => /lib/ld-linux.so.2 
> > (0x80000000)
> 
> even though both libgeos.so.2 and libproj.so.0 are
> present in /usr/local/lib.
> 
> Can anyone help here? Should the PROJ_DIR and
> GEOS_DIR
> variables in the Makefile.config point to
> /usr/local/lib instead of /usr/local?
> 
> Thanks,
> 
> Chip Masters
> 
> --- strk at refractions.net wrote:
> 
> > On Tue, Jun 21, 2005 at 03:45:51PM -0700, Chip
> > Masters wrote:
> > > We did compile GEOS (PostgreSQL and PostGIS as
> > well)
> > > with GCC 3.4.3. 
> > 
> > Are you sure you don't have old c++ headers around
> ?
> > Can you seek that __builtin_new symbol in system
> > headers ?
> > 
> > --strk;
> > _______________________________________________
> > postgis-users mailing list
> > postgis-users at postgis.refractions.net
> >
>
http://postgis.refractions.net/mailman/listinfo/postgis-users
> > 
> 
> 
> 
> 
> 
> 		
> ____________________________________________________
> Sell on Yahoo! Auctions – no fees. Bid on great
> items.  
> http://auctions.yahoo.com/
> _______________________________________________
> postgis-users mailing list
> postgis-users at postgis.refractions.net
>
http://postgis.refractions.net/mailman/listinfo/postgis-users
> 





		
____________________________________________________
Sell on Yahoo! Auctions – no fees. Bid on great items.  
http://auctions.yahoo.com/



More information about the geos-devel mailing list