Installing Metview on Debian Wheezy

These instructions are based on https://software.ecmwf.int/wiki/display/METV/Installation+Guide and some trial and error (the requirements are rather vaguely described in the Installation Guide).

Before you issue the commands below, be sure to activate the use of non-free software, since libmotif-dev is non-free (there is a free replacement for libmotif-dev, but I have not tested whether Metview works with it or not).

apt-get update
apt-get install libnetcdfc++4 libexpat1-dev libxml-parser-perl ghostscript ksh \
gsfonts-x11 libboost-dev libproj-dev cableswig swig libcairo2-dev libgd2-xpm \
libgd2-xpm-dev libgrib-api-dev libqt4-dev libqtwebkit-dev qt4-dev-tools \
libjasper-dev libopenjpeg-dev libnetcdf-dev libpango1.0-dev python-numpy \
libqt4-assistant libqt4-core libqt4-gui libqt4-sql-ibase libqt4-sql-odbc \
libqt4-sql-psql libqt4-sql-sqlite2 libqt4-webkit qt4-qtconfig qtcreator \
python-all-dev libmotif-dev libgdbm-dev imagemagick libxmu-dev gfortran gsfonts
wget --no-check-certificate 'https://software.ecmwf.int/wiki/download/attachments/3473472/emos_000392.tar.gz?version=1&modificationDate=1364471069350&api=v2'
mv emos_000392.tar.gz\?version\=1\&modificationDate\=1364471069350\&api\=v2 \
emos_000392.tar.gz
tar -xvf emos_000392.tar.gz
cd emos_000392
./build_library
root@hans:~/emos_000392# ./build_library

Default compilers are Portland: pgf77 and pgcc.
Do you want to work with GNU gfortran/gcc (answer y), ifort (answer i) ? [n]
y

Default is 32 bit reals.
Do you want 64 bit reals ? [y,n]
y

Do you want to build with grib_api ? [y,n]
y

 Can you specify the directory path for GRIB_API ?

Do you need jpeg support for grib_api ? [y,n]
y

 Can you specify the directory path for JASPER ?


 The default directory for gribtables, bufrtables, crextables,
land_sea_mask, gribtemplates and libemosR64.a will be /usr/local/lib,
 but you may put them anywhere you wish assuming
you have permission to do so.

 You can specify the directory path for GRIB, BUFR, CREX tables
local definition templates, land-sea mask, and libemosR64.a library
or just press RETURN if you want default directory.

Tables, templates, land-sea mask and libemosR64.a directory [/usr/local/lib]:
./install
cd
wget --no-check-certificate 'https://software.ecmwf.int/wiki/download/attachments/3473464/Magics-2.18.15.tar.gz?version=1&modificationDate=1366203533818&api=v2'
mv Magics-2.18.15.tar.gz\?version\=1\&modificationDate\=1366203533818\&api\=v2 \
 Magics-2.18.15.tar.gz
tar -xzvf Magics-2.18.15.tar.gz
cd Magics-2.18.15
./configure --enable-metview --enable-bufr --enable-python
make
make install
cd
wget --no-check-certificate 'https://software.ecmwf.int/wiki/download/attachments/3964985/Metview-4.3.9.tar.gz?version=1&modificationDate=1368686761995&api=v2'
mv Metview-4.3.9.tar.gz\?version\=1\&modificationDate\=1368686761995\&api\=v2 \
Metview-4.3.9.tar.gz
tar -xzvf Metview-4.3.9.tar.gz
cd Metview-4.3.9
./configure
make
make install

comments powered by Disqus


Back to the index

Blog roll

R-bloggers, Debian Weekly
Valid XHTML 1.0 Strict [Valid RSS] Valid CSS! Emacs Muse Last modified: oktober 17, 2019