<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML> <HEAD> <META HTTP-EQUIV="CONTENT-TYPE" CONTENT="text/html; charset=windows-1252"> <TITLE>UMN-MapServer on FreeBSD</TITLE> <META NAME="GENERATOR" CONTENT="OpenOffice.org 1.1.3 (Win32)"> <META NAME="AUTHOR" CONTENT="Benjamin Thelen"> <META NAME="CREATED" CONTENT="20030514;16290000"> <META NAME="CHANGEDBY" CONTENT="Till Adams"> <META NAME="CHANGED" CONTENT="20050804;9184860"> <STYLE> <!-- @page { size: 21cm 29.7cm; margin-left: 2.5cm; margin-right: 2.5cm; margin-top: 2.5cm; margin-bottom: 2cm } P { margin-bottom: 0cm; direction: ltr; color: #000000; widows: 2; orphans: 2 } P.western { font-family: "Times New Roman", serif; font-size: 10pt; so-language: en-GB } P.cjk { font-family: "Times New Roman", serif; font-size: 10pt } P.ctl { font-family: "Times New Roman", serif; font-size: 12pt; so-language: ar-SA } H1 { margin-bottom: 0.11cm; direction: ltr; color: #000000; widows: 2; orphans: 2 } H1.western { font-family: "Arial", sans-serif; font-size: 16pt; so-language: de-DE } H1.cjk { font-family: "Times New Roman", serif; font-size: 16pt } H1.ctl { font-family: "Arial", sans-serif; font-size: 16pt; so-language: ar-SA } H2 { margin-bottom: 0.11cm; direction: ltr; color: #000000; widows: 2; orphans: 2 } H2.western { font-family: "Arial", sans-serif; font-size: 14pt; so-language: de-DE; font-style: italic } H2.cjk { font-family: "Times New Roman", serif; font-size: 14pt; font-style: italic } H2.ctl { font-family: "Arial", sans-serif; font-size: 14pt; so-language: ar-SA; font-style: italic } H3 { margin-bottom: 0.11cm; direction: ltr; color: #000000; widows: 2; orphans: 2 } H3.western { font-family: "Arial", sans-serif; font-size: 13pt; so-language: de-DE } H3.cjk { font-family: "Times New Roman", serif; font-size: 13pt } H3.ctl { font-family: "Arial", sans-serif; font-size: 13pt; so-language: ar-SA } H4 { margin-top: 0cm; margin-bottom: 0cm; direction: ltr; color: #000000; widows: 2; orphans: 2 } H4.western { so-language: en-GB } H4.cjk { font-family: "Times New Roman", serif } H4.ctl { font-family: "Times New Roman", serif; so-language: ar-SA; font-weight: medium } H5 { margin-bottom: 0.11cm; direction: ltr; color: #000000; widows: 2; orphans: 2; page-break-after: auto } H5.western { font-size: 13pt; so-language: de-DE; font-style: italic } H5.cjk { font-family: "Times New Roman", serif; font-size: 13pt; font-style: italic } H5.ctl { font-family: "Times New Roman", serif; font-size: 13pt; so-language: ar-SA; font-style: italic } A:link { color: #0000ff } A:visited { color: #800080 } --> </STYLE> </HEAD> <BODY LANG="en-US" TEXT="#000000" LINK="#0000ff" VLINK="#800080" DIR="LTR"> <P LANG="en-GB" CLASS="western"><FONT SIZE=3>(July 2005)</FONT></P> <P LANG="en-GB" CLASS="western"><BR> </P> <P LANG="en-GB" CLASS="western"><FONT SIZE=3>This How-To describes the required steps to have a UMN-MapServer 4.4.1 with PostGIS 1.0.2 support on FreeBSD 5.4 running, as well as using Mapbender as a WMS Client.</FONT></P> <P LANG="en-GB" CLASS="western"><BR> <P LANG="en-GB" CLASS="western"><FONT SIZE=3>There is also an older version for freeBSd 4.11 - if you need this, please contact thelen [at] ccgis.de or adams [at] terrestris.de Ben Thelen, CCGIS GbR Bonn (Geo-Consortium) Till Adams, terrestris GbR Bonn (Geo-Consortium) </FONT></P> <P LANG="en-GB" CLASS="western"><BR> </P> <P LANG="de-DE" CLASS="western"><FONT SIZE=3><SPAN LANG="en-GB">Detailed information on how to install mapbender WMS Client Suite can be found on </SPAN><FONT COLOR="#0000ff"><U><A HREF="http://www.mapbender.org/"><SPAN LANG="en-GB">http://www.mapbender.org</SPAN></A></U></FONT><SPAN LANG="en-GB">.</SPAN></FONT></P> <P LANG="en-GB" CLASS="western"><BR> </P> <H2 LANG="en-GB" CLASS="western">I. Required Software</H2> <H3 LANG="en-GB" CLASS="western">Available FreeBSD Ports:</H3> <P LANG="de-DE" CLASS="western"><FONT SIZE=3><FONT COLOR="#0000ff"><U><A HREF="http://www.freebsd.org/ports/index.html"><SPAN LANG="en-GB">http://www.freebsd.org/ports/index.html</SPAN></A></U></FONT></FONT></P> <H5 LANG="en-GB" CLASS="western">Basic</H5> <P LANG="de-DE" CLASS="western"><FONT SIZE=3><SPAN LANG="en-GB">apache-1.3.33 (Category www) </SPAN><FONT COLOR="#0000ff"><U><A HREF="http://httpd.apache.org/"><SPAN LANG="en-GB">http://httpd.apache.org/</SPAN></A></U></FONT></FONT></P> <P LANG="de-DE" CLASS="western"><FONT SIZE=3><SPAN LANG="en-GB">mod_php5-5.0.4 (Category www) </SPAN><FONT COLOR="#0000ff"><U><A HREF="http://www.php.net/"><SPAN LANG="en-GB">http://www.php.net</SPAN></A></U></FONT></FONT></P> <P LANG="de-DE" CLASS="western"><FONT SIZE=3><SPAN LANG="en-GB">postgresql-server-8.0.3 (Category databases)</SPAN><FONT COLOR="#0000ff"><U><A HREF="http://www.postgresql.org/"><SPAN LANG="en-GB">http://www.postgresql.org</SPAN></A></U></FONT></FONT></P> <P LANG="de-DE" CLASS="western"><FONT SIZE=3><SPAN LANG="en-GB">mysql-server-4.1.13 (Category databases) </SPAN><FONT COLOR="#0000ff"><U><A HREF="http://www.mysql.org/"><SPAN LANG="en-GB">http://www.mysql.org</SPAN></A></U></FONT></FONT></P> <P LANG="en-GB" CLASS="western"><FONT SIZE=3>mapserver-4.4.1 (Category graphics) <FONT COLOR="#0000ff"><U><A HREF="http://mapserver.gis.umn.edu/"><SPAN LANG="en-GB">http://mapserver.gis.umn.edu</SPAN></A></U></FONT></FONT></P> <P LANG="en-GB" CLASS="western"><FONT SIZE=3>postgis-1.0.2 (Category databases) <FONT COLOR="#0000ff"><U><A HREF="http://postgis.refractions.net/"><SPAN LANG="en-GB">http://postgis.refractions.net</SPAN></A></U></FONT></FONT></P> <H5 LANG="en-GB" CLASS="western">Libraries</H5> <P LANG="de-DE" CLASS="western"><FONT SIZE=3><FONT COLOR="#0000ff"><U><A HREF="http://mapserver.gis.umn.edu/doc40/unix-install-howto.html"><SPAN LANG="en-GB">http://mapserver.gis.umn.edu/doc40/unix-install-howto.html</SPAN></A></U></FONT></FONT></P> <P LANG="en-GB" CLASS="western"><BR> </P> <P LANG="de-DE" CLASS="western"><FONT SIZE=3><SPAN LANG="en-GB">gd-2.0.33 (Category graphics) </SPAN><FONT COLOR="#0000ff"><U><A HREF="http://www.boutell.com/gd/"><SPAN LANG="en-GB">http://www.boutell.com/gd/</SPAN></A></U></FONT><SPAN LANG="en-GB"> </SPAN></FONT></P> <P LANG="de-DE" CLASS="western"><FONT SIZE=3><SPAN LANG="en-GB">proj-4.4.9 (Category graphics) </SPAN><FONT COLOR="#0000ff"><U><A HREF="http://www.remotesensing.org/proj/"><SPAN LANG="en-GB">http://www.remotesensing.org/proj/</SPAN></A></U></FONT></FONT></P> <P LANG="de-DE" CLASS="western"><FONT SIZE=3><SPAN LANG="en-GB">geos-2.0.1 (Category graphics) </SPAN><A HREF="http://geos.refractions.net/"><SPAN LANG="en-GB">http://geos.refractions.net/</SPAN></A></FONT></P> <P LANG="de-DE" CLASS="western"><FONT SIZE=3><SPAN LANG="en-GB">curl-7.14.0 (Category ftp) </SPAN><FONT COLOR="#0000ff"><U><A HREF="http://curl.haxx.se/libcurl/"><SPAN LANG="en-GB">http://curl.haxx.se/libcurl/</SPAN></A></U></FONT></FONT></P> <P LANG="de-DE" CLASS="western"><FONT SIZE=3><SPAN LANG="en-GB">libiconv-1.9.2 (Category converters) </SPAN><FONT COLOR="#0000ff"><U><A HREF="http://www.gnu.org/software/libiconv/"><SPAN LANG="en-GB">http://www.gnu.org/software/libiconv/</SPAN></A></U></FONT></FONT></P> <P LANG="en-GB" CLASS="western"><FONT SIZE=3>libxml2-2.6.8 (Category textproc) <A HREF="http://xmlsoft.org/">http://xmlsoft.org/</A><SPAN STYLE="text-decoration: none"> (Mapbender)</SPAN></FONT></P> <P LANG="de-DE" CLASS="western"><FONT SIZE=3><SPAN LANG="en-GB">gdal-1.2.1 (Category graphics) </SPAN><FONT COLOR="#0000ff"><U><A HREF="http://www.remotesensing.org/gdal/"><SPAN LANG="en-GB">http://www.remotesensing.org/gdal/</SPAN></A></U></FONT></FONT></P> <P LANG="de-DE" CLASS="western"><FONT SIZE=3><SPAN LANG="en-GB">freetype2-2.1.10 (Category print) </SPAN><FONT COLOR="#0000ff"><U><A HREF="http://www.freetype.org/"><SPAN LANG="en-GB">http://www.freetype.org/</SPAN></A></U></FONT></FONT></P> <P LANG="de-DE" CLASS="western"><FONT SIZE=3><SPAN LANG="en-GB">jpeg-6b (Category graphics) </SPAN><FONT COLOR="#0000ff"><U><A HREF="http://www.ijg.org/"><SPAN LANG="en-GB">http://www.ijg.org/</SPAN></A></U></FONT></FONT></P> <P LANG="de-DE" CLASS="western"><FONT SIZE=3><SPAN LANG="en-GB">tiff-3.7.3 (Category graphics) </SPAN><FONT COLOR="#0000ff"><U><A HREF="http://www.libtiff.org/"><SPAN LANG="en-GB">http://www.libtiff.org/</SPAN></A></U></FONT></FONT></P> <P LANG="de-DE" CLASS="western"><FONT SIZE=3><SPAN LANG="en-GB">png-1.2.8 (Category graphics) </SPAN><FONT COLOR="#0000ff"><U><A HREF="http://www.libpng.org/pub/png/"><SPAN LANG="en-GB">http://www.libpng.org/pub/png/</SPAN></A></U></FONT></FONT></P> <P LANG="en-GB" CLASS="western"><BR> </P> <H3 LANG="en-GB" CLASS="western"><BR><BR> </H3> <H5 LANG="en-GB" CLASS="western"><BR><BR> </H5> <P LANG="en-GB" CLASS="western"><BR> </P> <P LANG="en-GB" CLASS="western"><BR> </P> <H2 LANG="en-GB" CLASS="western">II. Software installation</H2> <H3 LANG="de-DE" CLASS="western">General instructions</H3> <P LANG="de-DE" CLASS="western"><FONT SIZE=3>For FreeBSD systems installation and maintanence, please read the excellent online handbook (<A HREF="http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/index.html"><SPAN LANG="en-GB">http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/index.html)</SPAN></A>. I'll just give some basic hints, as there is enough (detailed and better) documentation available.</FONT></P> <P LANG="de-DE" CLASS="western"><BR> </P> <P LANG="de-DE" CLASS="western"><FONT SIZE=3>To build a webserver, have the tools at hand to build a custom kernel and to be able to apply security patches, the installation set called <I>Developer</I> is the best choice to start the systems installation with.</FONT></P> <P LANG="de-DE" CLASS="western"><FONT SIZE=3><SPAN LANG="en-GB">Having chosen the installation set, one is asked whether to install the ports-collection. The name <I>port</I> means in FreeBSD nomenclature the name for a standard software package (to be more accurate: a source archive) combined with FreeBSD specific patches. It is highly recommended to do so, as the ports-collection offers an easy and flexible way of software installation and maintenance. Dependencies are taken into consideration and software updates are made comfortable. The port-collection is installed into <I>/usr/ports</I>. A tree structure is built up, which shows about 60 categories of software. To install software, one has to change into the directory called like the software one wishes to install, underneath the appropriate category and type <I>make install clean && pkgdb -Fa</I>. First, the compressed archive with the original source code is downloaded, after extraction, the FreeBSD specific patches are applied and finally the software will be compiled and installed.</SPAN></FONT></P> <P LANG="en-GB" CLASS="western"><BR> </P> <P LANG="de-DE" CLASS="western"><FONT SIZE=3><SPAN LANG="en-GB">To manage software installation and maintanence via ports-collection, two ports (“software packages”) have to be installed. This is <I>net/cvsup-without-gui</I> and <I>sysutils/portupgrade</I>. <I>sysutils</I> respectively <I>net</I> points to the category in which the specified software can be found.</SPAN></FONT></P> <P LANG="de-DE" CLASS="western"><FONT SIZE=3><SPAN LANG="en-GB">As a first step after systems installation, it is advisable to update the ports-collection, to have up-to-date software available. This update actually is a cvs (concurrent version system) synchronization, thus this update process is a <I>synchronisation </I><SPAN STYLE="font-style: normal">via cvs. Two</SPAN> configuration files are required, one for the port-collection and a second for the FreeBSD sources. The first example, synchronizes the ports and the second synchronizes the FreeBSD sources, but only with security patches ( this is what 'tag=RELENG_5_4' is for).</SPAN></FONT></P> <P LANG="en-GB" CLASS="western" STYLE="border-top: none; border-bottom: 1px solid #000000; border-left: none; border-right: none; padding-top: 0cm; padding-bottom: 0.07cm; padding-left: 0cm; padding-right: 0cm"> <BR> </P> <P LANG="en-GB" CLASS="western"><BR> </P> <P LANG="en-GB" CLASS="western"><FONT SIZE=3># synchronize ports-tree</FONT></P> <P LANG="en-GB" CLASS="western"><FONT SIZE=3>*default host=cvsup2.de.FreeBSD.org</FONT></P> <P LANG="en-GB" CLASS="western"><FONT SIZE=3>*default prefix=/usr</FONT></P> <P LANG="en-GB" CLASS="western"><FONT SIZE=3>*default release=cvs tag=.</FONT></P> <P LANG="en-GB" CLASS="western"><FONT SIZE=3>*default delete use-rel-suffix</FONT></P> <P LANG="en-GB" CLASS="western"><FONT SIZE=3>ports-all</FONT></P> <P LANG="en-GB" CLASS="western" STYLE="border-top: none; border-bottom: 1px solid #000000; border-left: none; border-right: none; padding-top: 0cm; padding-bottom: 0.07cm; padding-left: 0cm; padding-right: 0cm"> <FONT SIZE=3>doc-all</FONT></P> <P LANG="en-GB" CLASS="western" STYLE="border-top: none; border-bottom: 1px solid #000000; border-left: none; border-right: none; padding-top: 0cm; padding-bottom: 0.07cm; padding-left: 0cm; padding-right: 0cm"> <BR> </P> <P LANG="en-GB" CLASS="western"><BR> </P> <P LANG="en-GB" CLASS="western"><FONT SIZE=3># synchronize FreeBSD sources</FONT></P> <P LANG="en-GB" CLASS="western"><FONT SIZE=3>*default host=cvsup2.de.FreeBSD.org</FONT></P> <P LANG="en-GB" CLASS="western"><FONT SIZE=3>*default prefix=/usr</FONT></P> <P LANG="en-GB" CLASS="western"><FONT SIZE=3>*default release=cvs tag=RELENG_5_4</FONT></P> <P LANG="en-GB" CLASS="western"><FONT SIZE=3>*default delete use-rel-suffix</FONT></P> <P LANG="en-GB" CLASS="western"><FONT SIZE=3>src</FONT></P> <P LANG="en-GB" CLASS="western" STYLE="border-top: none; border-bottom: 1px solid #000000; border-left: none; border-right: none; padding-top: 0cm; padding-bottom: 0.07cm; padding-left: 0cm; padding-right: 0cm"> <BR> </P> <P LANG="en-GB" CLASS="western"><BR> </P> <P LANG="en-GB" CLASS="western"><FONT SIZE=3>Choose a server near your location! A complete list can be found at the end of Appendix A.5.5 CVSup File Collections of the english handbook:</FONT></P> <P LANG="en-GB" CLASS="western"><FONT SIZE=3><A HREF="http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/cvsup.html">http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/cvsup.html</A></FONT></P> <P LANG="en-GB" CLASS="western"><FONT SIZE=3>There is also a list of the cvs branch tags (e.g. RELENG_5_4)</FONT></P> <P LANG="en-GB" CLASS="western"><FONT SIZE=3><A HREF="http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/cvs-tags.html">http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/cvs-tags.html</A></FONT></P> <P LANG="en-GB" CLASS="western"><BR> </P> <P LANG="en-GB" CLASS="western"><FONT SIZE=3>The synchronisation progress will be started by typing the following in in a shell:</FONT></P> <P LANG="en-GB" CLASS="western"><FONT SIZE=3><I>cd /usr/ports && cvsup /path-to-/supfile</I> && <I>make fetchindex</I></FONT></P> <P LANG="en-GB" CLASS="western"><BR> </P> <P LANG="en-GB" CLASS="western"><FONT SIZE=3>The last command fetches a file which can be seen as a table of contents of the ports-collection.</FONT></P> <P LANG="en-GB" CLASS="western"><BR> </P> <P LANG="en-GB" CLASS="western"><FONT SIZE=3>Now the latest software can be installed. To synchronize all installed software with the freshend ports-collection type <I>portupgrade -arR.</I>. <I>Portupgrade</I> executes <I>pkgdb -Fa</I> automatically.</FONT></P> <P LANG="en-GB" CLASS="western"><BR> </P> <P LANG="en-GB" CLASS="western"><BR> </P> <P LANG="en-GB" CLASS="western"><BR> </P> <P LANG="en-GB" CLASS="western"><FONT SIZE=3>Further important commands:</FONT></P> <P LANG="en-GB" CLASS="western"><BR> </P> <P LANG="en-GB" CLASS="western"><FONT SIZE=3><I>pkg_info [|grep package-name/part of package name]</I> lists [all] installed packages</FONT></P> <P LANG="en-GB" CLASS="western"><FONT SIZE=3><I>portversion –v</I> checks whether all installed packages are up to date with the ports collection (but requires an up-to-date index - see above).</FONT></P> <P LANG="en-GB" CLASS="western"><FONT SIZE=3><I>portupgrade <portname></I> upgrade a specific portname</FONT></P> <P LANG="en-GB" CLASS="western"><FONT SIZE=3><I>portupgrade -arR</I> upgrade all installed packages recursively</FONT></P> <P LANG="en-GB" CLASS="western"><FONT SIZE=3><I>pkgdb –Fa </I><SPAN STYLE="font-style: normal">should be executed to update the ports database properly after every installation via </SPAN><I>make install clean</I><SPAN STYLE="font-style: normal"> (a single sofware installation)</SPAN></FONT></P> <P LANG="en-GB" CLASS="western" STYLE="font-style: normal"><FONT SIZE=3><I>portsclean -C</I> to clean the work directories within the ports-collection</FONT></P> <P LANG="en-GB" CLASS="western"><BR> </P> <H3 LANG="de-DE" CLASS="western">Starting the installation</H3> <P LANG="de-DE" CLASS="western"><FONT SIZE=3>Keep in mind that some packages can already be installed on the system as a result of a dependency. For example, if you install the apache php modul, apache webserver itself will be installed as a consequence of the given dependency, too. Another example would be the library gdal, which installes several libraries, like jpeg, tiff, png and freetype2 automatically. This, of course, only works if a software installation system like the ports-collection is used.</FONT></P> <P LANG="de-DE" CLASS="western"><BR> </P> <P LANG="de-DE" CLASS="western"><FONT SIZE=3>The installation can easily be accomplished by opening one shell, changing to the given directory and typing <I>make install clean</I>. That's all.</FONT></P> <P LANG="de-DE" CLASS="western"><FONT SIZE=3><B>Before</B> you start, you have to set an environment varible, to activate GEOS support within PostGIS:</FONT></P> <P LANG="de-DE" CLASS="western"><FONT SIZE=3>In <I>csh</I> shell: </FONT> </P> <P LANG="de-DE" CLASS="western" STYLE="margin-left: 1.51cm"><FONT FACE="Courier, monospace"><FONT SIZE=2 STYLE="font-size: 11pt"># <I>setenv LDFLAGS -lstdc++</I></FONT></FONT></P> <P LANG="de-DE" CLASS="western"><FONT SIZE=3>In <I>sh</I> or <I>bash</I> shell: </FONT> </P> <P LANG="de-DE" CLASS="western" STYLE="margin-left: 1.51cm"><FONT FACE="Courier, monospace"><FONT SIZE=2 STYLE="font-size: 11pt"># export LDFLAGS=-lstdc++</FONT></FONT></P> <P LANG="de-DE" CLASS="western" STYLE="margin-left: 1.51cm"><BR> </P> <P LANG="de-DE" CLASS="western" STYLE="margin-left: 1.51cm"><BR> </P> <UL> <LI><P LANG="de-DE" CLASS="western"><FONT SIZE=3>/usr/ports/databases/postgresql80-server</FONT></P> <LI><P LANG="de-DE" CLASS="western"><FONT SIZE=3>/usr/ports/databases/postgis/</FONT></P> <P LANG="de-DE" CLASS="western"><FONT SIZE=3>After you've typed <I>make install clean, </I>you're asked to choose some options, with which postGIS will be compiled with. Please choose <I>geos.</I></FONT></P> <LI><P LANG="de-DE" CLASS="western"><FONT SIZE=3>/usr/ports/graphics/mapserver/</FONT></P> <P LANG="de-DE" CLASS="western"><FONT SIZE=3><SPAN STYLE="font-weight: medium"><SPAN STYLE="font-style: normal">Please choose </SPAN><I>wfs</I><SPAN STYLE="font-style: normal">, </SPAN><I>wms</I><SPAN STYLE="font-style: normal">, </SPAN><I>gdal </I>and<SPAN STYLE="font-style: normal"> </SPAN><I>postgis, mapserv.</I></SPAN></FONT></P> </UL> <UL> <LI><P LANG="de-DE" CLASS="western"><FONT SIZE=3>/usr/ports/www/mod_php5/</FONT></P> <LI><P LANG="de-DE" CLASS="western"><FONT SIZE=3>/usr/ports/lang/php5-extensions/</FONT></P> <P LANG="de-DE" CLASS="western"><FONT SIZE=3>Please choose <I>curl</I>, <I>gd</I>, <I>pgsql.</I></FONT></P> <LI><P LANG="de-DE" CLASS="western"><FONT SIZE=3>/usr/ports/databases/mysql41-server/</FONT></P> </UL> <P LANG="de-DE" CLASS="western" STYLE="margin-left: 1.53cm"><BR> </P> <P LANG="de-DE" CLASS="western" STYLE="margin-left: 1.53cm"><FONT SIZE=3>The following ports are installed as dependency of one of the above installed ports. There should be no necessity to install them seperately.</FONT></P> <UL> <LI><P LANG="de-DE" CLASS="western"><FONT SIZE=3>/usr/ports/www/apache13/</FONT></P> <LI><P LANG="de-DE" CLASS="western"><FONT SIZE=3>/usr/ports/graphics/gdal/</FONT></P> <LI><P LANG="de-DE" CLASS="western"><FONT SIZE=3>/usr/ports/graphics/gd2/</FONT></P> <LI><P LANG="de-DE" CLASS="western"><FONT SIZE=3>/usr/ports/print/freetype2/</FONT></P> <LI><P LANG="de-DE" CLASS="western"><FONT SIZE=3>/usr/ports/graphics/jpeg/</FONT></P> <LI><P LANG="de-DE" CLASS="western"><FONT SIZE=3>/usr/ports/graphics/png/</FONT></P> <LI><P LANG="de-DE" CLASS="western"><FONT SIZE=3>/usr/ports/graphics/proj/</FONT></P> <LI><P LANG="de-DE" CLASS="western"><FONT SIZE=3>/usr/ports/graphics/geos/</FONT></P> <LI><P LANG="de-DE" CLASS="western"><FONT SIZE=3>/usr/ports/ftp/curl/</FONT></P> <LI><P LANG="de-DE" CLASS="western"><FONT SIZE=3>/usr/ports/graphics/tiff/</FONT></P> </UL> <P LANG="de-DE" CLASS="western" ALIGN=LEFT><BR> </P> <H3 LANG="de-DE" CLASS="western">Last Steps</H3> <P LANG="en-GB" CLASS="western"><BR> </P> <H4 LANG="en-GB" CLASS="western">postgreSQL</H4> <P LANG="de-DE" CLASS="western"><FONT SIZE=3>The standard partition <I>/usr/</I> is in some circumstances not big enough to hold huge databases. Additionally it is advisable to separate the data. The easiest way to accomplish both is to move the data to another partition or better another harddrive and create a symbolic link.</FONT></P> <P LANG="de-DE" CLASS="western"><BR> </P> <P LANG="de-DE" CLASS="western" STYLE="margin-left: 1.51cm"><FONT FACE="Courier, monospace"><FONT SIZE=2 STYLE="font-size: 11pt"><I><SPAN STYLE="background: transparent"># ln -s /usr/local/pgsql /data/pgsql</SPAN></I></FONT></FONT></P> <P LANG="en-GB" CLASS="western"><BR> </P> <P LANG="de-DE" CLASS="western"><FONT SIZE=3><SPAN LANG="en-GB"><FONT FACE="Arial, sans-serif">To start the PostgreSQL DBMS at boot time, add to /</FONT></SPAN>etc/rc.conf 'postgresql_enable="YES"'. To initialize the DBMS type:</FONT></P> <P LANG="de-DE" CLASS="western"><BR> </P> <P LANG="de-DE" CLASS="western" STYLE="margin-left: 1.48cm"><FONT FACE="Courier, monospace"><FONT SIZE=2 STYLE="font-size: 11pt"># /usr/local/etc/rc.d/010.pgsql.sh initdb</FONT></FONT></P> <P LANG="de-DE" CLASS="western" STYLE="margin-left: 1.48cm"><BR> </P> <P LANG="de-DE" CLASS="western" STYLE="margin-left: 1.48cm"><BR> </P> <H4 LANG="en-GB" CLASS="western">PHP5</H4> <P LANG="de-DE" CLASS="western"><BR> </P> <P LANG="de-DE" CLASS="western"><FONT SIZE=3>Add <I>AddType application/x-httpd-php .php </I><SPAN STYLE="font-style: normal">to httpd.conf.</SPAN></FONT></P> <P LANG="de-DE" CLASS="western"><BR> </P> <P LANG="de-DE" CLASS="western"><BR> </P> <H4 LANG="en-GB" CLASS="western">UMN MapServer</H4> <P LANG="de-DE" CLASS="western"><FONT SIZE=3>A first test with <I>/usr/local/www/cgi-bin/mapserv -v</I> should look like this:</FONT></P> <P LANG="de-DE" CLASS="western"><BR> </P> <P LANG="de-DE" CLASS="western" STYLE="margin-left: 1.51cm"><FONT FACE="Courier, monospace"><FONT SIZE=2 STYLE="font-size: 11pt">FreeBSD:~ # <SPAN STYLE="font-style: normal">/usr/local/www/cgi-bin/mapserv -v</SPAN></FONT></FONT></P> <P LANG="de-DE" CLASS="western" STYLE="margin-left: 1.51cm"><FONT FACE="Courier, monospace"><FONT SIZE=2 STYLE="font-size: 11pt">MapServer version 4.4.1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT INPUT=EPPL7 INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE</FONT></FONT></P> <P LANG="de-DE" CLASS="western" STYLE="margin-left: 1.51cm"><BR> </P> <P LANG="de-DE" CLASS="western"><FONT SIZE=3>If you type <I>http://hostname/cgi-bin/mapserv</I> within your web browser, you should see the following:</FONT></P> <P LANG="de-DE" CLASS="western"><BR> </P> <P LANG="en-GB" CLASS="western" STYLE="margin-left: 1.53cm"><FONT FACE="Courier, monospace"><FONT SIZE=2 STYLE="font-size: 11pt">No query information to decode. QUERY_STRING is set, but empty</FONT></FONT></P> <P LANG="en-GB" CLASS="western" STYLE="margin-left: 1.53cm"><BR> </P> <P LANG="en-GB" CLASS="western" STYLE="margin-left: 1.53cm"><BR> </P> <P LANG="en-GB" CLASS="western" STYLE="margin-left: 1.53cm"><BR> </P> <P LANG="en-GB" CLASS="western" STYLE="margin-left: 1.53cm"><BR> </P> <P LANG="en-GB" CLASS="western"><BR> </P> <H3 LANG="en-GB" CLASS="western">For the advanced user, compiling UMN-MapServer by hand</H3> <P LANG="de-DE" CLASS="western"><FONT SIZE=3>Extract the tarball-archive via <I>tar -xzvf mapserver-4.6.0.tar.gz</I><SPAN STYLE="font-style: normal">.</SPAN></FONT></P> <P LANG="de-DE" CLASS="western"><FONT SIZE=3>First the configure script needs to be executed. Change to the location, where you've extracted the source code and type the following in a shell:</FONT></P> <P LANG="en-GB" CLASS="western"><BR> </P> <P LANG="en-GB" CLASS="western"><FONT SIZE=3>./configure --with-xpm=/usr/X11R6/lib \</FONT></P> <P LANG="en-GB" CLASS="western"> <FONT SIZE=3>--with-gd \</FONT></P> <P LANG="en-GB" CLASS="western"> <FONT SIZE=3>--with-gdal \</FONT></P> <P LANG="en-GB" CLASS="western"> <FONT SIZE=3>--without-eppl \</FONT></P> <P LANG="en-GB" CLASS="western"> <FONT SIZE=3>--with-ogr \</FONT></P> <P LANG="en-GB" CLASS="western"> <FONT SIZE=3>--with-proj=/usr/local \</FONT></P> <P LANG="en-GB" CLASS="western"> <FONT SIZE=3>--with-jpeg=/usr/local \</FONT></P> <P LANG="en-GB" CLASS="western"> <FONT SIZE=3>--without-pdf \</FONT></P> <P LANG="en-GB" CLASS="western"> <FONT SIZE=3>--with-png=/usr/local \</FONT></P> <P LANG="en-GB" CLASS="western"> <FONT SIZE=3>--without-png \</FONT></P> <P LANG="en-GB" CLASS="western"> <FONT SIZE=3>--with-tiff=/usr/local \</FONT></P> <P LANG="en-GB" CLASS="western"> <FONT SIZE=3>--without-tiff \</FONT></P> <P LANG="en-GB" CLASS="western"> <FONT SIZE=3>--with-libiconv=/usr/local \</FONT></P> <P LANG="en-GB" CLASS="western"> <FONT SIZE=3>--with-zlib \</FONT></P> <P LANG="en-GB" CLASS="western"> <FONT SIZE=3>--with-curl \</FONT></P> <P LANG="en-GB" CLASS="western"> <FONT SIZE=3>--with-freetype \</FONT></P> <P LANG="en-GB" CLASS="western"> <FONT SIZE=3>--with-wmsclient \</FONT></P> <P LANG="en-GB" CLASS="western"> <FONT SIZE=3>--with-wcs \</FONT></P> <P LANG="en-GB" CLASS="western"> <FONT SIZE=3>--with-wfs \</FONT></P> <P LANG="en-GB" CLASS="western"> <FONT SIZE=3>--with-wfsclient \</FONT></P> <P LANG="en-GB" CLASS="western"> <FONT SIZE=3>--with-postgis</FONT></P> <P LANG="en-GB" CLASS="western" STYLE="margin-left: 2.01cm"><BR> </P> <P LANG="en-GB" CLASS="western"><BR> </P> <P LANG="en-GB" CLASS="western"><FONT SIZE=3>Finally compile the code with <I><B>g</B>make </I><SPAN STYLE="font-style: normal">(DO NOT </SPAN><I><B>g</B>make install</I><SPAN STYLE="font-style: normal">!!) and </SPAN>copy the mapserv binary to /usr/local/www/cgi-bin!</FONT></P> </BODY> </HTML>