Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
fimex:install [2016-10-24 11:10:45] alexanderb [Pre-build Packages] link to download page |
fimex:install [2022-05-31 09:29:32] (current) |
||
---|---|---|---|
Line 1: | Line 1: | ||
====== Installation ====== | ====== Installation ====== | ||
- | ===== Pre-build Packages ===== | + | ===== Pre-built Packages ===== |
If you are lucky to run one of the following operating systems, you can install fimex from a package repository, please check the [[fimex: | If you are lucky to run one of the following operating systems, you can install fimex from a package repository, please check the [[fimex: | ||
Line 8: | Line 8: | ||
Fimex requires at least the following libraries to be installed for compilation: | Fimex requires at least the following libraries to be installed for compilation: | ||
- | * c99/c++ compiler | + | * c99/c++11 compiler |
* [[http:// | * [[http:// | ||
- | * [[http:// | ||
* [[http:// | * [[http:// | ||
- | * [[http:// | + | * [[http:// |
+ | * [[https:// | ||
+ | * [[https:// | ||
+ | * [[https:// | ||
To configure the different file formats or features it requires: | To configure the different file formats or features it requires: | ||
* [[http:// | * [[http:// | ||
- | * [[http://www.ecmwf.int/products/data/software/ | + | * [[https://software.ecmwf.int/wiki/display/ECC/ecCodes+Home|ecCodes]] |
- | * [[http:// | + | |
* [[http:// | * [[http:// | ||
* [[http:// | * [[http:// | ||
* [[http:// | * [[http:// | ||
- | * [[http:// | + | |
===== Build ===== | ===== Build ===== | ||
- | The installation follows the usual autoconf rules, see ' | + | See [[https://github.com/metno/fimex/blob/master/README.md|README.md]] for build instructions. |
- | extensive information. Since Fimex makes some floating-point calculations | + | |
- | in large loops, it is advisable to switch on SIMD/SSE operations in your | + | |
- | compiler. On a Xeon machine with a x386 machine and gcc, I use the | + | |
- | following flags (those are default for x86-64) (see [[http://heikok.blogspot.com/2008/08/ | + | |
- | + | ||
- | Since fimex 0.21 | + | |
- | < | + | |
- | CFLAGS=' | + | |
- | make | + | |
- | make check | + | |
- | make install | + | |
- | </ | + | |
- | + | ||
- | ==== Static netcdf4 ==== | + | |
- | + | ||
- | Use nc-config or package-config scripts to detect library dependencies, | + | |
- | < | + | |
- | ./configure --with-netcdf=/ | + | |
- | </ | + | |
- | + | ||
- | + | ||
- | ==== Additional Libraries ==== | + | |
- | + | ||
- | Some libraries need to be added before running '' | + | |
- | '' | + | |
- | < | + | |
- | export LDFLAGS=' | + | |
- | ./ | + | |
- | </ | + | |
- | If you need to add several libraries, append them with space to the LDFLAGS line, e.g. for an additional library '' | + | |
- | < | + | |
- | export LDFLAGS=' | + | |
- | ./ | + | |
- | </ | + | |
- | + | ||
- | === grib_api === | + | |
- | + | ||
- | Most grib_api versions do not come with an automatic library detection program like package-config. When linking against grib_api, you need to know the required library flags, e.g. '' | + | |
- | < | + | |
- | export LDFLAGS=' | + | |
- | ./configure --with-grib_api=/ | + | |
- | </ | + | |
- | + | ||
- | === udunits2 === | + | |
- | + | ||
- | udunits2 requires the expat library. Depending on the library version, this is compiled into the library, or put into the same path as udunits2, or it uses the systems expat library. So, if you run into problems with '' | + | |
- | + | ||
- | < | + | |
- | export LDFLAGS=' | + | |
- | ./configure --with-udunits2 | + | |
- | </ | + | |
==== Optimizations with gcc ==== | ==== Optimizations with gcc ==== | ||
Line 95: | Line 44: | ||
* interpolation: | * interpolation: | ||
* interpolation with coord_nearestneighbor (good parallelization in startup) | * interpolation with coord_nearestneighbor (good parallelization in startup) | ||
- | |||
- | === CAVEAT (fimex < 0.38.1)=== | ||
- | |||
- | Due to a bug in libtool, the options required for linking against a parallelized libfimex are not set automatically and need to be entered manually by the programmer using libfimex: https:// | ||
- | |||
===== Test ===== | ===== Test ===== | ||
Line 106: | Line 50: | ||
* Put this file into the test-catalogue | * Put this file into the test-catalogue | ||
* gunzip the file | * gunzip the file | ||
- | * run ' | + | * run '' |
===== Known Problems ===== | ===== Known Problems ===== | ||
Line 161: | Line 105: | ||
The boost libraries (1.44) are not compatible with the AIX XL/C++ compiler V10 and we had to compile boost and fimex with gcc to get it working under AIX. This might have been improved with newer versions of the AIX compiler, but hasn't been tested: http:// | The boost libraries (1.44) are not compatible with the AIX XL/C++ compiler V10 and we had to compile boost and fimex with gcc to get it working under AIX. This might have been improved with newer versions of the AIX compiler, but hasn't been tested: http:// | ||
+ |