[mapserver-users] Compiling Mapserver with Oracle Spatial support issue

Michael Smith michael.smith.erdc at gmail.com
Tue Aug 25 07:49:48 PDT 2020


The sdk part is needed with the instant client. 

Make sure you also have libaoi (ubuntu libaoi1) installed.

Make sure ORACLE_HOME (path to the instant client library) is in the LD_LIBRARY_PATH. 

 

Mike

 

 

-- 

Michael Smith

US Army Corps of Engineers

Remote Sensing/GIS Center

 

 

From: mapserver-users <mapserver-users-bounces at lists.osgeo.org> on behalf of Steve Lime <sdlime at gmail.com>
Date: Tuesday, August 25, 2020 at 10:39 AM
To: Marcin Grudzień <mgrudzien7 at gmail.com>
Cc: Mapserver <mapserver-users at lists.osgeo.org>
Subject: Re: [mapserver-users] Compiling Mapserver with Oracle Spatial support issue

 

Hmmm... Does -DWITH_ORACLESPATIAL=ON (so ON vs 1) make a difference? It shouldn't... If you do a "ldd mapserv" is the binary linked against the Oracle libs?

 

On Wed, Aug 19, 2020 at 12:55 AM Marcin Grudzień <mgrudzien7 at gmail.com> wrote:

Hi,

 

I am new to Mapserver. I am trying to compile MapServer 7.6.1 with Oracle Spatial support on Ubuntu 20.04. 

 

I basically follow the instruction on https://www.mapserver.org/installation/unix.html#. 

 

To configure my environment I use 

cmake .. -DINSTALL_LIB_DIR:PATH=/usr/lib -DCMAKE_PREFIX_PATH="/usr/local;/opt;/usr/lib;/usr/lib/x86_64-linux-gnu;/usr/local/lib;/usr/lib/oracle/11.2/client64/bin;/usr/lib/oracle/11.2/client64/lib" -DWITH_CLIENT_WFS=1 -DWITH_CLIENT_WMS=1 -DWITH_CURL=1 -DWITH_SOS=1 -DWITH_PHP=1 -DWITH_PERL=1 -DWITH_RUBY=0 -DWITH_JAVA=1 -DWITH_CSHARP=0 -DWITH_PYTHON=1 -DWITH_SVGCAIRO=0 -DWITH_ORACLESPATIAL=1 -DWITH_MSSQL2008=0 -DWITH_CURL=1 -DWITH_LIBXML2=1 ../ >../configure.out.txt

 

The cmake output shows:

* Summary of configured options for this build
--  * Mandatory components
--   * GDAL: /usr/local/lib/libgdal.so
--   * PROJ: /usr/lib/x86_64-linux-gnu/libproj.so
--   * png: /usr/lib/x86_64-linux-gnu/libpng.so
--   * jpeg: /usr/lib/x86_64-linux-gnu/libjpeg.so
--   * freetype: /usr/lib/x86_64-linux-gnu/libfreetype.so
--  * Optional components
--   * GIF: /usr/lib/x86_64-linux-gnu/libgif.so
--   * MYSQL: disabled
--   * FRIBIDI: /usr/lib/x86_64-linux-gnu/libfribidi.so
--   * HARFBUZZ: /usr/lib/x86_64-linux-gnu/libharfbuzz.so
--   * GIF: /usr/lib/x86_64-linux-gnu/libgif.so
--   * CAIRO: /usr/lib/x86_64-linux-gnu/libcairo.so
--   * SVGCAIRO: disabled
--   * RSVG: disabled
--   * CURL: /usr/lib/x86_64-linux-gnu/libcurl.so
--   * PIXMAN: disabled
--   * LIBXML2: /usr/lib/x86_64-linux-gnu/libxml2.so
--   * POSTGIS: /usr/lib/x86_64-linux-gnu/libpq.so
--   * GEOS: /usr/lib/x86_64-linux-gnu/libgeos_c.so
--   * FastCGI: /usr/lib/x86_64-linux-gnu/libfcgi.so
--   * PROTOBUFC: /usr/local/lib/libprotobuf-c.so
--   * Oracle Spatial: /usr/lib/oracle/11.2/client64/lib/libclntsh.so;/usr/lib/oracle/11.2/client64/lib/libocci.so;/usr/lib/oracle/11.2/client64/lib/libnnz11.so
--   * Exempi XMP: disabled
--  * Optional features
--   * WMS SERVER: ENABLED
--   * WFS SERVER: ENABLED
--   * WCS SERVER: ENABLED
--   * SOS SERVER: ENABLED
--   * WMS CLIENT: ENABLED
--   * WFS CLIENT: ENABLED
--   * ICONV: ENABLED
--   * Thread-safety support: disabled
--   * KML output: disabled
--   * Z+M point coordinate support: ENABLED
--   * XML Mapfile support: disabled
--  * Mapscripts
--   * Python: ENABLED
--   * PHP: ENABLED
--   * PHPNG: disabled
--   * PERL: ENABLED
--   * RUBY: disabled
--   * JAVA: ENABLED
--   * C#: disabled
--   * V8 Javascript: disabled
--   * Apache Module (Experimental): disabled
--
-- PROJECT_BINARY_DIR is set to /home/mgrudzien/mapserver-7.6.1/build
-- Will install files to /usr/local
-- Will install libraries to /usr/lib
-- Configuring done
-- Generating done
-- Build files have been written to: /home/mgrudzien/mapserver-7.6.1/build

 

Then I compile and install MapServer. However, when I execute mapserv -v I get

MapServer version 7.6.1 OUTPUT=PNG OUTPUT=JPEG OUTPUT=KML SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=CAIRO SUPPORTS=SVG_SYMBOLS SUPPORTS=RSVG SUPPORTS=ICONV SUPPORTS=FRIBIDI SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=SOS_SERVER SUPPORTS=FASTCGI SUPPORTS=THREADS SUPPORTS=GEOS SUPPORTS=POINT_Z_M SUPPORTS=PBF INPUT=JPEG INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE

 

The Oracle Spatial is not supported. What am I doing wrong?  How this can be solved?

 

Best regards,

Marcin

_______________________________________________
mapserver-users mailing list
mapserver-users at lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users

_______________________________________________ mapserver-users mailing list mapserver-users at lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/mapserver-users

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20200825/40e5a763/attachment.htm>


More information about the MapServer-users mailing list