Building Mapserver 6.4 and Mapcache 1.2 on Amazon Linux


More for me than anything else, but building and installing Mapserver and its cache from source can be a pain.

echo "/usr/local/lib" > /etc/
yum install libpng-devel libjpeg-turbo-devel gdal-devel libxml2-devel geos-devel cairo-devel gd gd-devel giflib-devel mysql-devel freetype-devel fribidi-devel proj-devel fcgi-devel postgresql9-devel.x86_64 gd-progs libcurl-devel swig perl-libs perl-devel php-devel ruby-devel ruby-libs ruby-extlib java-1.7.0-openjdk java-1.7.0-openjdk-devel sqlite-devel pcre-devel apr-devel httpd-devel libtiff-devel libgeotiff-devel
yum remove java-1.6.0-openjdk
mkdir -p inst/mapserver-6.4.0/build
mkdir -p inst/mapcache-rel-1-2-0/build
cd inst/mapserver-6.4.0/build
make install
cd ../../mapcache-rel-1-2-0/build
make install

Oh, and you might want the ELGIS repo for some of those:

rpm -Uvh
This entry was posted in Architecture, Linuxy, Work and tagged , . Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *