[Bug 89792] Re: LDFLAGS=-lstdc++ needed for PostGIS

Toshimi Minoura minoura at eecs.orst.edu
Mon Mar 5 04:24:10 GMT 2007


** Description changed:

  1. Download postgis-1.2.1.tar.gz from 
      http://postgis.refractions.net/download/
      to /usr/share/postgresql/8.1/contrib
  
  2.  tar xvzf postgis-1.2.1.tar.gz
       cd postgis-1.2.1
        ./configure --prefix=/usr --with-pgsql=/usr/bin/pg_config --with-geos=/usr/bin/geos-config --with-proj=/usr
        make
        install
  3. # create a PostgreSQL database for a test
       createdb zpostgis_test
       createlang plpgsql zpostgis_test
-      psql -d zpostgis_test /usr/share/postgresql/8.1/contrib/postgis-1.2.1/wpostgis.sql
+      psql -d zpostgis_test -f /usr/share/postgresql/8.1/contrib/postgis-1.2.1/lwpostgis.sql
  
      We now get an error "Could not be loaded liblwgeom.so.1.2"
       even liblwgeom.so.1.2 is in /usr/lib.
+ 
+ Or execute the first SQL statement in lwpostgis.sql:
+ postgres=# CREATE OR REPLACE FUNCTION histogram2d_in(cstring) RETURNS histogram2d AS '/usr/lib/liblwgeom.so.1.2', 'lwhistogram2d_in' LANGUAGE 'C' IMMUTABLE STRICT; -- WITH (isstrict);
+ NOTICE:  type "histogram2d" is not yet defined
+ DETAIL:  Creating a shell type definition.
+ ERROR:  could not load library "/usr/lib/liblwgeom.so.1.2": /usr/lib/liblwgeom.so.1.2: undefined symbol: has_arc
+ 
+ The error can be probably fixed by configuring
+ with command
+ 
+ LDFLAGS=-lstdc++ ./configure
+ 
+ The instruction for installing PostGIS can be found at
+ http://postgis.refractions.net/support/wiki/index.php?PostgisOnUbuntu

-- 
LDFLAGS=-lstdc++ needed for PostGIS 
https://launchpad.net/bugs/89792



More information about the ubuntu-backports mailing list