[postgis-devel] SFCGAL : trouble installing

Rémi Cura remi.cura at gmail.com
Mon Oct 14 03:30:30 PDT 2013


Hey list (and salut SFCGAL guys).

I would like to use SFCGAL but can't make it work.

On a Ubuntu 12.04 LTS, Postgres 9.3, postgis 2.1, CGAL 4.2 , SFCGAL 1.0.2.


   1. I compil &install CGAL : fine
   2. I configure and compil SFCGAL : fine
   3. I install SFCGAL : fine (see log)



   1. I clean postgis : fine
   2. I configure postgis : strange (see log) **SFCGAL version is marked as
   1.0.0 where it should be 1.0.2
   3. I compil postgis : fine (see log)
   4. I install Postgis : fine (see log)


Then I create a new database :

   - CREATE DATABASE test_sfcgal;

And try to add postgis

   - CREATE EXTENSION postgis VERSION '2.1.0';


Then I get the error message :

   - "ERROR:  could not load library "/usr/lib/postgresql/9.3/lib/
   postgis-2.1.so": libSFCGAL.so: cannot open shared object file: No such
   file or directory"


Yet libsfcgal.so is in "/usr/local/lib".

Is it related to the fact that I have two postgres server (9.2 and 9.3, on
port 5432 and 5433), even if only the 9.3 is running when installing etc?

I tried to configure postgis with a given sfcgal path : 'usr/local'
SFCGAL version is not detected in Postgis configure step.
Then I get error while building postgis (raster section)

/bin/bash ../../libtool --mode=link gcc -g -O2  -fPIC -DPIC  -Wall
-Wmissing-prototypes -I../rt_core -I../../liblwgeom  -I/usr/include/gdal
-I/usr/local/include   ../rt_core/librtcore.a raster2pgsql.o
../../liblwgeom/liblwgeom.la -L/usr/lib -lgdal  -L/usr/local/lib -lgeos_c
 -lc -lm -o raster2pgsql
libtool: link: gcc -g -O2 -fPIC -DPIC -Wall -Wmissing-prototypes
-I../rt_core -I../../liblwgeom -I/usr/include/gdal -I/usr/local/include
raster2pgsql.o -o .libs/raster2pgsql  ../rt_core/librtcore.a
../../liblwgeom/.libs/liblwgeom.so -L/usr/lib -lgdal -L/usr/local/lib
/usr/local/lib/libgeos_c.so -lc -lm
../../liblwgeom/.libs/liblwgeom.so: undefined reference to
`sfcgal_linestring_add_point' ....

I also tried to install SFCGAL in a custom directory ,
then use the --with-sfcgal=the_directory
I got the same error while building than when indicating 'usr/local'

Postgis_full_version() before installing sfcgal :

POSTGIS="2.1.0 r11822" GEOS="3.4.2-CAPI-1.8.2 r3921" PROJ="Rel. 4.8.0, 6
March 2012" GDAL="GDAL 1.10.0, released 2013/04/24" LIBXML="2.8.0" TOPOLOGY
RASTER



Any help appreciated, as I tried everything I could think of !

Cheers

Rémi-C
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/postgis-devel/attachments/20131014/dfae84e9/attachment.html>


More information about the postgis-devel mailing list