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


Compliling CDO as a non-root user

  1. Download the most recent CDO version. New features and bug fixes are common and users are urged to keep an up-to-date version of CDO.
  2. Create a local installation directory in your home. In BASH:
    mkdir -p ~/local/cdo
    export CDO_HOME="~/local/cdo"
  3. Build libs4cdo, to be found on the CDO website. In the libs4cdo directory:
    ./configure --prefix=$CDO_HOME
    make install
  4. 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 install

The CFLAGS command is to enable cdo over OpenDAP.