Version 1 (modified by lalibert, 8 years ago) (diff)


Compliling NCO as a non-root user

  1. Download the most recent NCO version. New features and bug fixes are common and users are urged to keep an up-to-date version of NCO.
  2. Install libs4cdo. Instructions can be found here?
  3. Create a local installation directory in your home. In BASH:
    mkdir -p ~/local/cdo
    export CDO_HOME="~/local/cdo"
  4. Build libs4cdo, to be found on the CDO website. In the libs4cdo directory:
    ./configure --prefix=$CDO_HOME
    make install
  5. Build cdo. In the cdo directory:
    ../configure --prefix=$CDO_HOME --with-proj=$CDO_HOME --with-grib_api=$CDO_HOME --with-jasper=$CDO_HOME --with-netcdf=$CDO_HOME --with-hdf5=$CDO_HOME --with-zlib=$CDO_HOME --with-szlib=$CDO_HOME --with-threads=$CDO_HOME --enable-cgribex=no CFLAGS=-DHAVE_LIBNC_DAP
    make check
    make install

The CFLAGS command is to enable cdo over OpenDAP.

  1. Update your .bashrc:
    export PATH=$HOME/local/cdo/bin:$PATH