[mapserver-users] Compile mapserver with custom external libs

Alberto Asuero alasarr at gmail.com
Fri Nov 16 04:29:56 PST 2012


What I've done is a wrapper with an export like that before:

export LD_LIBRARY_PATH=/export
LD_LIBRARY_PATH=/usr/local/gis/postgresql-9.1.2/lib:/usr/local/gis/geos-3.3.2/lib:/usr/local/gis/proj-4.7.0/lib:/usr/local/gis/gdal-1.9.0/lib/

How can I tell mapserver to do it automatically in mapserv executable
itself? Is that possible?





  Alberto Asuero
Ingeniero Informático
  alberto.asuero at gstgis.com
654 190 888
   Rodio 35
41007 Sevilla
Spain

  T  +34  954 437 818
F  +34  955 110 441
 Visita nuestra web
 *www.gstgis.com*
 <http://www.gstgis.com/>



On Fri, Nov 16, 2012 at 1:11 PM, Alberto Asuero <alasarr at gmail.com> wrote:

> I've compiled mapserver 5.6.7 with a custom version of geos, postgis,
> gdal and proj4.
>
> Here is the configure command:
>
> *./configure           --prefix=/usr/local/gis/mapserver-5.6.7
> --with-pdf            --with-freetype       --with-agg
>  --with-eppl           --with-proj=/usr/local/gis/proj-4.7.0
> --with-threads        --with-sde
>  --with-geos=/usr/local/gis/geos-3.2.2/bin/geos-config
> --with-ogr=/usr/local/gis/gdal-1.9.2/bin/gdal-config
> --with-gdal=/usr/local/gis/gdal-1.9.0/bin/gdal-config           --with-tiff
>           --with-postgis=/usr/local/gis/postgresql-9.1.2/bin/pg_config
>    --with-wfs            --with-wcs            --with-wmsclient
>  --with-wfsclient      --with-sos            --with-fribidi-config --with-gd
> *
>
> Everything works fine but when I do:
>
> "*ldd mapserv*" it says:
> ...
> *libproj.so.0 => /usr/lib/libproj.so.0 (0xb7504000)*
> *libgdal.so.1 => not found*
> *libgeos_c.so.1 => /usr/lib/libgeos_c.so.1 (0xb74ec000)*
> *libpq.so.5 => /usr/lib/libpq.so.5*
> ...
>
> Why these libraries don't use the path specified in the configure command.
> it'd be make senses to me if ldd output looks like:
>
>  ...
> *libproj.so.0 => /usr/local/gis/proj-4.7.0/lib/libproj.so.0 (0xb7504000)*
> *libgdal.so.1 => not found*
> *libgeos_c.so.1 => /**usr/local/gis/geos-3.2.2**/lib/libgeos_c.so.1
> (0xb74ec000)*
> *libpq.so.5 => /usr/lib/libpq.so.5*
> ...
>
> What's wrong here?
>
> Am I forced to do symbol links or set the custom libraries in LD_PATH?
>
>
> Thanks!
>   Alberto Asuero
> Ingeniero Informático
>   alberto.asuero at gstgis.com
> 654 190 888
>    Rodio 35
> 41007 Sevilla
> Spain
>
>   T  +34  954 437 818
> F  +34  955 110 441
>  Visita nuestra web
>  *www.gstgis.com*
>  <http://www.gstgis.com/>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20121116/ea8541cf/attachment.htm>


More information about the MapServer-users mailing list