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/ld.so.conf.d/xmaps.conf
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
cmake .. -DWITH_PHP=1 -DWITH_PERL=1 -DWITH_RUBY=0 -DWITH_JAVA=1
make
make install
cd ../../mapcache-rel-1-2-0/build
cmake .. -DWITH_TIFF=1 -DWITH_GEOTIFF=1 -DWITH_PCRE=1
make
make install

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

rpm -Uvh http://elgis.argeo.org/repos/6/elgis-release-6-6_0.noarch.rpm
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 *