[mapserver-dev] Compiling with PostGIS support

Danila B. Savchuk sdb_cnc at mail.ru
Thu Jul 9 19:53:13 PDT 2015


 Hi all,


Can not compile mapserver with postgis support.

OS: CentOS release 6.5 (Final)

PostgreSQL  9.3 installed from postgres YUM repositories installed.

PostGIS version 2.1.7 installed from sources 
./configure --prefix=/usr --with-pgconfig=/usr/pgsql-9.3/bin/pg_config --enable-static --enable-shared 

Database in posgres succesfully spatially enabled by postgis.

pg_config is found at: /usr/pgsql-9.3/bin



Try to build mapserver with many different varies of option DWITH_POSTGIS

cmake -DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_PREFIX_PATH=/usr/pgsql-9.3/:/usr:/usr/include:/usr/local:/usr/local/include:/usr/include/php/include:/usr/include/php/sapi \
-DWITH_FRIBIDI=0 \
-DWITH_ORACLESPATIAL=0 \
-DWITH_GIF=0 \
-DWITH_PROJ=ON \
-DWITH_KML=ON \
-DWITH_WMS=1 \
-DWITH_GD=/usr/local/include \
-DUSE_GD_JPEG=1 \
-DWITH_ICONV=ON \
-DWITH_CAIRO=0 \
-DWITH_SVGCAIRO=0 \
-DWITH_MYSQL=ON \
-DWITH_FCGI=ON \
-DWITH_POSTGIS=/usr/pgsql-9.3 \
-DWITH_GDAL=ON \
-DWITH_OGR=ON \
-DWITH_CURL=ON \
-DWITH_WFS=ON \
-DWITH_WCS=ON \
-DWITH_LIBXML2=ON \
-DWITH_PHP=0 \
-DWITH_CLIENT_WFS=0 \
-DWITH_CLIENT_WMS=0 \
-DWITH_CURL=ON \
-DWITH_SOS=ON \
-DWITH_PYTHON=OFF /src/mapserver_src/mapserver-rel-6-4-2


and always result:
--   * POSTGIS: disabled


What should I do to compile it with PostGIS support?



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-dev/attachments/20150710/747cfa4d/attachment.html>


More information about the mapserver-dev mailing list