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).
Tested on version 8.3 and 8.4. If running a local database you need the PostgreSQL server, otherwise only the client is required.
With mod_proxy installed (sudo a2enmod proxy)
libnetcdf, ncdump and ncgen
This requires you have sufficient sudo privileges to install packages and add repositories.
Add the corresponding lines to your /etc/apt/sources.list depending on your version of Ubuntu:
# for lucid deb http://repo.met.no/met.no lucid main contrib deb-src http://repo.met.no/met.no lucid main contrib # for hardy deb http://repo.met.no/met.no hardy main contrib deb-src http://repo.met.no/met.no hardy main contrib
If you want to run development versions (recommended until 2.11), also add:
# for lucid deb http://repo.met.no/devel lucid main contrib deb-src http://repo.met.no/devel lucid main contrib # for hardy deb http://repo.met.no/devel hardy main contrib deb-src http://repo.met.no/devel hardy main contrib
Note: At the moment this repo is not available outside met.no. In that case you're out of luck. Please contact the authors for instructions on how to obtain the packages manually.
$ sudo apt-get install metno-perl-webdev-ver1 $ sudo apt-get install metno-metamod-2.11
Alternately you may download the .deb files from repo.met.no 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.
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.
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 https://svn.met.no/metamod/trunk
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.