wiki:cdo_install

Version 9 (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 source code directory:
    make libs4cdo 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
    make check
    make install
    

The CFLAGS command is to enable cdo over OpenDAP.

  1. Installation we were able to get:
    cdo -V
    Climate Data Operators version 1.5.4 (http://code.zmaw.de/projects/cdo)
    Compiler: gcc -std=gnu99 -DHAVE_LIBNC_DAP
     version: gcc (GCC) 4.1.2 20080704 (Red Hat 4.1.2-51)
        with: PTHREADS NC4 OPeNDAP SZ Z JASPER PROJ.4
         CDI library version : 1.5.4 of Feb 12 2012 00:49:37
    GRIB_API library version : 1.9.9
      netCDF library version : 4.1.2 of Dec 15 2011 16:27:27 $
        HDF5 library version : 1.8.7
     SERVICE library version : 1.3.0 of Feb 12 2012 00:49:18
       EXTRA library version : 1.3.0 of Feb 12 2012 00:49:06
         IEG library version : 1.3.0 of Feb 12 2012 00:49:13
        FILE library version : 1.7.1 of Feb 12 2012 00:49:07
    
  1. Update your .bashrc:
    export PATH=$HOME/local/cdo/bin:$PATH