I may be mistaken here,
But when you compiled geos, gdal,and pgsql you specified the install path of the program. the libraries will go where libraries are suppose to go eg '/usr/lib' '/usr/local/lib' etc...
so other programs can find them..



-Jeff Lake
MichiganWxSystem.com
AllisonHouse.com
TheWeatherCenter.net
GRLevelXStuff.com

On 11/16/2012 7:29, Alberto Asuero wrote:
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.asu...@gstgis.com <mailto:alberto.asu...@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 <alas...@gmail.com <mailto:alas...@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.asu...@gstgis.com <mailto:alberto.asu...@gstgis.com>
    654 190 888 <tel:654%20190%20888>
    Rodio 35
    41007 Sevilla
    Spain

    T +34  954 437 818 <tel:%2B34%C2%A0%C2%A0954%20437%20818>
    F +34  955 110 441 <tel:%2B34%C2%A0%C2%A0955%20110%20441>
    Visita nuestra web
    *www.gstgis.com*
    <http://www.gstgis.com/>




_______________________________________________
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users

_______________________________________________
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users

Reply via email to