[geos-devel] Re: [postgis-users] Error compiling PostGIS + GEOS
strk at refractions.net
strk at refractions.net
Wed Jul 6 17:22:10 EDT 2005
Did you run 'ldconfig' after GEOS install ?
--strk;
On Wed, Jul 06, 2005 at 12:31:21PM -0700, Chip Masters 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/
> _______________________________________________
> geos-devel mailing list
> geos-devel at geos.refractions.net
> http://geos.refractions.net/mailman/listinfo/geos-devel
More information about the geos-devel
mailing list