Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
diana:autotools [2012-03-13 12:43:55] lisbethb |
— (current) | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ====== Building Metlibs and Diana with Autotools ====== | ||
| - | |||
| - | * Download source 3.25.0 | ||
| - | * [[ftp:// | ||
| - | * [[ftp:// | ||
| - | |||
| - | They both use a number of specially-written autoconf macros, which can be found in metlibs' | ||
| - | |||
| - | ===== Prerequisites ===== | ||
| - | |||
| - | On a clean stock Ubuntu Lucid (10.04) install, you will first need to install build tools: | ||
| - | |||
| - | * '' | ||
| - | * '' | ||
| - | * '' | ||
| - | * '' | ||
| - | * '' | ||
| - | * '' | ||
| - | |||
| - | < | ||
| - | sudo apt-get install build-essential gfortran autoconf automake libtool subversion | ||
| - | </ | ||
| - | |||
| - | Next, you will need to install various third-party libraries that Metlibs and Diana depend on: | ||
| - | |||
| - | == Metlibs == | ||
| - | * '' | ||
| - | * '' | ||
| - | * '' | ||
| - | * '' | ||
| - | * '' | ||
| - | * '' | ||
| - | * '' | ||
| - | * '' | ||
| - | * '' | ||
| - | * '' | ||
| - | * '' | ||
| - | * '' | ||
| - | * '' | ||
| - | * '' | ||
| - | * '' | ||
| - | * '' | ||
| - | * '' | ||
| - | * '' | ||
| - | * '' | ||
| - | * '' | ||
| - | * '' | ||
| - | |||
| - | **Without optional libraries: | ||
| - | < | ||
| - | sudo apt-get install flex bison ftgl-dev libhdf4g-dev libtiff4-dev libqt4-dev proj libboost-dev libboost-date-time-dev \ | ||
| - | | ||
| - | </ | ||
| - | |||
| - | **With optional libraries: | ||
| - | < | ||
| - | sudo apt-get install flex bison ftgl-dev libhdf4g-dev libhdf5-serial-dev libtiff4-dev libqt4-dev proj libboost-dev libboost-date-time-dev \ | ||
| - | | ||
| - | | ||
| - | </ | ||
| - | |||
| - | == Diana == | ||
| - | |||
| - | * '' | ||
| - | * '' | ||
| - | * libxt-dev | ||
| - | |||
| - | **Without optional libraries: | ||
| - | < | ||
| - | sudo apt-get install libshp-dev libxt-dev | ||
| - | </ | ||
| - | |||
| - | **With optional libraries: | ||
| - | < | ||
| - | sudo apt-get install libshp-dev libavformat-dev libxt-dev | ||
| - | </ | ||
| - | |||
| - | For observation buffer support in Diana: | ||
| - | * '' | ||
| - | |||
| - | For GRIB support in Metlibs and Diana: | ||
| - | * '' | ||
| - | |||
| - | For fimex support in Metlibs and Diana: | ||
| - | * '' | ||
| - | |||
| - | Except for those marked with (*), '' | ||
| - | |||
| - | |||
| - | ===== Installation ====== | ||
| - | |||
| - | ==== Metlibs ==== | ||
| - | |||
| - | By default, all modules are enabled except for '' | ||
| - | |||
| - | Unpack the metlibs archive and enter the directory containing the source files. | ||
| - | If you have root privileges on your system, configure the library by running the | ||
| - | '' | ||
| - | |||
| - | < | ||
| - | ./configure --enable-xfonts --enable-allprofet --with-fimex | ||
| - | </ | ||
| - | |||
| - | Otherwise, to configure the library for installation in a directory where you | ||
| - | have permission to write files, run the '' | ||
| - | way: | ||
| - | |||
| - | < | ||
| - | ./configure --enable-xfonts --enable-allprofet --with-fimex --prefix=$HOME/ | ||
| - | </ | ||
| - | |||
| - | where, in this example, we used '' | ||
| - | '' | ||
| - | |||
| - | Build and install the library with the following commands: | ||
| - | |||
| - | < | ||
| - | make | ||
| - | make install | ||
| - | </ | ||
| - | |||
| - | You may need root privileges to install the library unless you specified a | ||
| - | prefix in the configuration step. | ||
| - | ==== Diana ==== | ||
| - | |||
| - | By default, support for '' | ||
| - | |||
| - | Unpack the diana archive and enter the directory containing the source files. If you have root privileges on your system, configure the library by running the configure script: | ||
| - | |||
| - | < | ||
| - | ./configure --enable-xlib --enable-obs-bufr --enable-profet --enable-proddb | ||
| - | </ | ||
| - | |||
| - | Otherwise, to configure the library for installation in a directory where you have permission to write files, run the configure script in the following way: | ||
| - | |||
| - | < | ||
| - | ./configure --enable-xlib --enable-obs-bufr --enable-profet --enable-proddb --prefix=$HOME/ | ||
| - | </ | ||
| - | |||
| - | where, in this example, we used $HOME/diana to specify a directory called diana in the user's home directory. | ||
| - | |||
| - | Build and install the application with the following commands: | ||
| - | |||
| - | < | ||
| - | make | ||
| - | make install | ||
| - | </ | ||
| - | |||
| - | You may need root privileges to install the library unless you specified a prefix in the configuration step. | ||