The easiest way to install mapserver on your Leopard is by downloading and installing dmg files from www.kyngchaos.com (courtesy of William Kyngesburye). These binaries were also noted from Mapserver’s Download Page.

  1. Download the ff binaries in order (please note the version numbers at the time of writing):

  2. UnixImageIO_Framework-1.0.22a.dmg
  3. FreeType_Framework-2.3.5-3.dmg
  4. GEOS_Framework-3.0.0-2.dmg
  5. PROJ_Framework-4.6.0-1.dmg
  6. SQLite3_Framework-3.5.7-1.dmg
  7. MapServer-5.0.2-2.dmg

  8. Once installed, you can copy the mapserv binaries to your apache cgi-bin
sudo cp /Library/WebServer/CGI-Executables/mapserv /usr/local/apache2/cgi-bin/
  1. Check the mapserv output
rupert:~ rupert$ /usr/local/apache2/cgi-bin/mapserv -v
MapServer version 5.0.2 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=SWF OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=SOS_SERVER SUPPORTS=FASTCGI SUPPORTS=GEOS INPUT=EPPL7 INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE

This is actually the first time I was able to install mapserver NOT BY SOURCE and still achieve the same binaries that I wanted (with AGG support). Full credit should be given to William.