Skip to content

Quick and dirty install of GeoMoose from source on Debian Wheezy, Ubuntu 12.04 and similar

Jim Klassen edited this page Feb 23, 2015 · 2 revisions

Edit to suit your local environment. YMMV.

Pull in the packages we need.

# GeoMoose Runtime Deps
apt-get install \
    apache2 libapache2-mod-php5 \
    mapserver-bin cgi-mapserver gdal-bin \
    php5-mapscript php5-sqlite php5-gd php5-curl

# GeoMoose Build Deps
apt-get install \
    subversion subversion-tools \
    git-core gitk git-gui git-email gitweb git-svn git-doc \
    default-jre \
    python-sphinx make texlive texlive-latex-extra \
    naturaldocs

Get the GeoMoose source.

git clone --recursive https://github.com/geomoose/geomoose.git /srv/geomoose

Setup some symbolic links.

cd /srv/geomoose/js
ln -s ../services/php .
ln -s geomoose.html index.html

Build the JavaScript code.

cd /srv/geomoose/js/libs
./build_js.sh

Setup local config files.

cat > /srv/geomoose/conf/local_settings.ini <<EOF
[paths]
root=/srv/geomoose/maps/
mapserver_url=/cgi-bin/mapserv
temp=/tmp/
EOF

cat > /srv/geomoose/maps/temp_directory.map <<EOF
# This file is used to configure temporary directories for Mapserver Mapfile
IMAGEPATH "/tmp/"
EOF

Build the Docs.

cd /srv/geomoose/docs
make html

Build the API Reference Docs.

cd /srv/geomoose/js
mkdir -p ../docs/build/html/apidocs
naturaldocs -i geomoose -o html ../docs/build/html/apidocs -p ntdocs

Make things available in the apache document root.

ln -s /srv/geomoose/js /var/www/geomoose
ln -s /srv/geomoose/docs/build/html /var/www/geomoose-docs

Restart apache.

apachectl restart
Clone this wiki locally