CKO



Installation Instructions for the Field Library

To install the Field library, you should perform the following steps:
  1. Check whether the netcdf and udunits libraries are installed on your system. If not, get them from the UNIDATA website. You also will need a working Fortran90 compiler.
  2. If you don't have the source distribution yet, download it from the tools page of the CKO website.
  3. Create a new directory, e.g., Field, and change to this directory.
    mkdir Field
    cd Field
  4. Unpack the the source distribution, e.g., with
    gunzip -c ../field.tar.gz | tar xvf -
  5. Configure the software with
    ./configure
    This starts execution of a script that tries to retrieve all the information that is needed to correctly configure the software for compilation and installation. In the case the configuration script fails, you can provide it several options to influence the configuration process. (You can list these options with ./configure --help.) The following options are the ones that you most likely need when the configuration script fails:
    --prefix=path You can specify this option to change the directory in which the Field library will be installed. The default location is the directory in which you unpacked the source distribution. Often it is convenient to install the Field library in your home directory with
    ./configure --prefix=$HOME
    --with-netcdf=path
    In case the configuration script could not locate the NetCDF library and header files, you can pass it this option to specify their location. For example, when the NetCDF header files and library are located in /ws/scratch/ms/nl/nk1/include and /ws/scratch/ms/nl/nk1/lib respectively add the following option to the command-line of the script
    --with-netcdf=/ws/scratch/ms/nl/nk1
    --with-udunits=path In case the configuration script could not locate the NetCDF library and header files, you can pass it this option to specify their location. For example, when the udunits header files and library are located in /usr/local/free/include and /usr/local/free/lib add the following option to the command-line of the script
    --with-udunits=/usr/local/free
  6. Compile the library with
    make
  7. To install the library and Fortran90 header and module files in the include and lib subdirectories of the installation directory you specified to the configuration script at step 5, enter the command
    make install

Camiel Severijns
Last modified: Wed Mar 14 18:38:05 CET 2001