[postgis-devel] Compile PostGIS on SLES9 based 64-bit

strk at refractions.net strk at refractions.net
Wed Apr 26 04:22:34 PDT 2006


On Tue, Apr 25, 2006 at 06:15:48PM +0200, Silke Reimer wrote:
> 
> Hallo!
> 
> I came across a problem with the configuration of PostGIS during the
> build process when I am working on a SLES9 based 64-bit
> architecture. The problem is that the libdir in SLES9 is
> $prefix/lib64 and not, as it is assumed for postgis configuration
> $prefix/lib. (Perhaps this problem occurs on other systems on 64-bit
> architectures as well, I don't know).
> 
> For my build process I just patched the Makefile in lwgeom (see patch below).
> Of course this cannot be the general solution. I think the best
> solution would be to:
> 
> - introduce a two variables called GEOS_LIBDIR and PROJ_LIBDIR
>   that are defined in Makefile.config
> - Default value for both variables should be GEOS_DIR/lib resp. PROJ_DIR/lib
> - During configure GEOS_LIBDIR can be defined as the libpath that is
>   given by geos-config --libs. This doesn't work for PROJ_LIBDIR
>   since proj has not proj-config. Perhaps somebody has another good idea?

We already know geos-config --libs is broken, right ?
--with-geos-libs=<path> and --with-proj-libs=<path> seems the
easiest option to me (at least to override the broken geos-config)
Alternatively we should provide macros seeking for libraries around.

--strk;



More information about the postgis-devel mailing list