<HTML><BODY>Hi all,<br><br><br>Can not compile mapserver with postgis support.<br><br>OS: CentOS release 6.5 (Final)<br><br>PostgreSQL 9.3 installed from postgres YUM repositories installed.<br><br>PostGIS version 2.1.7 installed from sources <br>./configure --prefix=/usr --with-pgconfig=/usr/pgsql-9.3/bin/pg_config --enable-static --enable-shared <br><br>Database in posgres succesfully spatially enabled by postgis.<br><br>pg_config is found at: /usr/pgsql-9.3/bin<br><br><br><br>Try to build mapserver with many different varies of option DWITH_POSTGIS<br><br>cmake -DCMAKE_INSTALL_PREFIX=/usr \<br>-DCMAKE_PREFIX_PATH=/usr/pgsql-9.3/:/usr:/usr/include:/usr/local:/usr/local/include:/usr/include/php/include:/usr/include/php/sapi \<br>-DWITH_FRIBIDI=0 \<br>-DWITH_ORACLESPATIAL=0 \<br>-DWITH_GIF=0 \<br>-DWITH_PROJ=ON \<br>-DWITH_KML=ON \<br>-DWITH_WMS=1 \<br>-DWITH_GD=/usr/local/include \<br>-DUSE_GD_JPEG=1 \<br>-DWITH_ICONV=ON \<br>-DWITH_CAIRO=0 \<br>-DWITH_SVGCAIRO=0 \<br>-DWITH_MYSQL=ON \<br>-DWITH_FCGI=ON \<br>-DWITH_POSTGIS=/usr/pgsql-9.3 \<br>-DWITH_GDAL=ON \<br>-DWITH_OGR=ON \<br>-DWITH_CURL=ON \<br>-DWITH_WFS=ON \<br>-DWITH_WCS=ON \<br>-DWITH_LIBXML2=ON \<br>-DWITH_PHP=0 \<br>-DWITH_CLIENT_WFS=0 \<br>-DWITH_CLIENT_WMS=0 \<br>-DWITH_CURL=ON \<br>-DWITH_SOS=ON \<br>-DWITH_PYTHON=OFF /src/mapserver_src/mapserver-rel-6-4-2<br><br><br>and always result:<br>-- * POSTGIS: disabled<br><br><br>What should I do to compile it with PostGIS support?<br><br><br><br></BODY></HTML>