METAMOD software installation

Back to Index


This describes how to install the METAMOD base software on a Linux server. No services will be available until you configure and set up a METAMOD instance (see Deploying a METAMOD application).

METAMOD is developed, tested and used on Ubuntu LTS servers (Hardy, Lucid). Debian packages are provided regularly for easy installation and upgrading. Installation from source is also possible, but requires much more work (at least for dependency libraries).

Required software

PostgreSQL database system

Tested on version 8.3 and 8.4. If running a local database you need the PostgreSQL server, otherwise only the client is required.

Apache 2.x web server

With mod_proxy installed (sudo a2enmod proxy)

libxml and libxslt library


Proj4 library

NetCDF software 3.5 or later

libnetcdf, ncdump and ncgen

Installation from Debian packages

This requires you have sufficient sudo privileges to install packages and add repositories.

Adding the package repository

Add the corresponding lines to your /etc/apt/sources.list depending on your version of Ubuntu:

  # for lucid
  deb lucid main contrib
  deb-src lucid main contrib

  # for hardy
  deb hardy main contrib
  deb-src hardy main contrib

If you want to run development versions (recommended until 2.11), also add:

  # for lucid
  deb lucid main contrib
  deb-src lucid main contrib

  # for hardy
  deb hardy main contrib
  deb-src hardy main contrib

Note: At the moment this repo is not available outside In that case you're out of luck. Please contact the authors for instructions on how to obtain the packages manually.

Installing METAMOD and dependencies via apt

  $ sudo apt-get install metno-perl-webdev-ver1
  $ sudo apt-get install metno-metamod-2.11

Alternately you may download the .deb files from and install manually.

  $ sudo dpkg -i metno-metamod-2.11_2.11.0-x_all.deb

where 2.11.0-x is the latest version in the repository.

Installation from source

Perl module dependencies

We really do not recommend installing the 350 required Perl modules (plus an additional baker's dozen of compiled C libraries) from CPAN unless you're really hardcore (or desperate). If you can, install the metno-perl-webdev-ver1 Debian package as specified above.

A complete list of Perl module dependencies (as per 2012-01-31) can be found in metamod-deps.txt; this can be used as a source for scripting. At some point there might be a METAMOD::Bundle module, but don't hold your breath.

Checking out the METAMOD source

Assuming you have the dependencies sorted out, installing METAMOD from source is a piece of cake. All you need is to check out the code from Subversion into a suitable directory. No special privileges are required (yet).

  $ mkdir metamod
  $ cd metamod
  $ svn co


You will now have the necessary software installed, however it will not do anything until you configure and set up a METAMOD application. See deploying for further instructions.