Mapserver install on Ubuntu 18.04 with Naviserver:

Mapserver install on Ubuntu 18.04 with Naviserver:

I assume you have already installed Naviserver, PostgreSQL and PostGIS.

Update apt-get
apt-get update 
Install dependencies:
apt-get install libprotobuf-c-dev
apt-get install protobuf-c-compiler
apt-get install libjpeg-dev
apt-get install libfreetype6
apt-get install libfreetype6-dev
apt-get install libproj-dev
apt-get install libfribidi-dev
apt-get install libharfbuzz-dev
apt-get install libcairo2-dev
apt-get install libgeos-dev
apt-get install libgdal-dev
apt-get install libpixman-1-dev
apt-get install libfcgi-dev


Download Mapserver from http://download.osgeo.org/mapserver/mapserver-7.4.1.tar.gz
Extract tar to some directory, create build directory and run from build

cmake -DCMAKE_INSTALL_PREFIX=/opt/mapserver --DWITH_WITH_KML=ON 
-DWITH_CLIENT_WFS=ON -DWITH_CLIENT_WMS=ON -DWITH_SOS=ON 
--DWITH_WITH_XMLMAPFILE=ON ../ 
It will build and install Mapserver into /opt/mapserver

Comments

Popular posts from this blog