WebFaction
Community site: login faq

Hi there!

I am not very much into Linux so please bear with me.

I am trying to get this example working for several days now, but no success.

I need to install a local instance of PostGIS because I needed newer versions of GDAL, GEOS and PROJ (problems with local projection transformation definitions), but when I try it the way explained in this answer, it throws the error (while compiling PostGIS):

In file included from lwgeom_sfcgal.c:17:0:
lwgeom_sfcgal.h:17:10: fatal error: SFCGAL/capi/sfcgal_c.h: No such file or directory
 #include <sfcgal capi="" sfcgal_c.h="">
          ^~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.

It also won't install GDAL, but this goes without errors.

I tried different versions of PostgreSQL, PostGIS, GDAL, and eventually tried the original recipe but it is always the same. Dependencied for PostGIS in script log file look like this:


-------------- Dependencies -------------- 
  GEOS config:          /home/zavod/bin/geos-config
  GEOS version:         3.4.2
  GDAL config:          /usr/bin/gdal-config
  GDAL version:         1.11.4
  SFCGAL config:        /usr/bin/sfcgal-config
  SFCGAL version:       1.3.1
  PostgreSQL config:    /home/zavod/bin/pg_config
  PostgreSQL version:   PostgreSQL 9.1.15
  PROJ4 version:        48
  Libxml2 config:       /usr/bin/xml2-config
  Libxml2 version:      2.9.1
  JSON-C support:       no
  PostGIS debug level:  0
  Perl:                 /usr/bin/perl
So, because (for the unknown reason) GDAL was not installed locally, it falls back to the system GDAL and SFCGAL, but why it throws the error that it can not find SFCGAL then?

The only thing that is different from the original example is that I installed GCC 7 from this answer.

Can somebody please help me, I am starting to losing it.

asked 12 Aug, 09:43

vstupar
134
accept rate: 0%

edited 12 Aug, 09:47


The error is shown because make can't find the source files for the SFCGAL wrapper library, as only the binaries and the compiled libraries are installed on the server.

Since that's an optional library, according to PostGIS docs, you can set the configure script ignore them, point it to your own installed version, or ask us to temporary install the source files, as we did for this case, while you compile the other libraries.

permanent link

answered 12 Aug, 15:21

iliasr ♦♦
2.2k14
accept rate: 34%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×23
×10
×3

question asked: 12 Aug, 09:43

question was seen: 191 times

last updated: 12 Aug, 15:21

                              
WEBFACTION
REACH US
SUPPORT
LEGAL
© COPYRIGHT 2003-2020 SWARMA LIMITED - WEBFACTION IS A SERVICE OF SWARMA LIMITED
REGISTERED IN ENGLAND AND WALES 5729350 - VAT REGISTRATION NUMBER 877397162
5TH FLOOR, THE OLD VINYL FACTORY, HAYES, UB3 1HA, UNITED KINGDOM