Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

CC=gcc FC=gfortranThese set the choice of C and Fortran compilers. They can be omitted as the configure script will usually find them. However, if you have multiple compilers available and want to use a particular compiler, use these environment variables.
--prefix        
This specifies where you want the grib_api files to be installed. In example here, the source code is in $HOME/ecmwf/grib_api_1.14.0-Source and the compiled grib_api libraries will go in directory $HOME/ecmwf/grib_api. You are free to choose any installation directory but it's recommended to keep the installed binaries & libraries in a separate directory to the source code, in case different compiler versions are needed. On a shared high performance computer facility, the install path would most likely be somewhere central. If nothing is specified for --prefix, by default grib_api will install in /usr/local.
--disable-jpegOpenIFS models do not need to support JPEG and PNG for data compression. This removes the need to link against the Jasper library (libjasper.a).
--enable-pthreadThis option ensures that grib_api is thread-safe and is a recommended option.
--enable-pythonThis option is not essential but desirable. It enables the python interface and is required as some utilities make use of the grib-api python interface. If the make fails because of a missing numpy header file we recommend installing numpy. Although you could add the --disable-numpy option, if this option does not work, some of the tools provided with OpenIFS models may not work.

...

Available options

--help option to configure can be used to see what other options are possible, also see the grib_api website for more detailed documentation.

...