Packages downloads:
- Download CDO from https://code.zmaw.de/projects/cdo/files.
- Download NetCDF from http://www.unidata.ucar.edu/downloads/netcdf/index.jsp. Use the C version.
- Download Grib API from https://software.ecmwf.int/wiki/display/GRIB/Releases.
- Download Jasper from http://www.ece.uvic.ca/~frodo/jasper/#download.
- Download HDF5 and zlib from ftp://ftp.unidata.ucar.edu/pub/netcdf/netcdf-4.
- Create a directory that will hold the installation libs and include files. In this case, it's DIR=/home/Programs/cdo-1.7.2-install.
- Install zlib using
- ./configure –prefix=$DIR
- ‘make’, ‘make check’ and ‘make install’
- Install HDF5 using (The most key package, affecting netcdf4 and onwards. Please refer to https://code.zmaw.de/boards/2/topics/4398?r=4399)
- ./configure –with-zlib=$DIR –prefix=$DIR CFLAGS=-fPIC --enable-shared --enable-hl --enable-threadsafe --enable-unsupported
- ‘make’, ‘make check’ and ‘make install’
- Install netcdf4 using (https://code.zmaw.de/boards/1/topics/1445)
- CPPFLAGS=-I/DIR/include LDFLAGS=-L/DIR/lib ./configure –prefix=DIR CFLAGS=-fPIC
- ‘make’, ‘make check’ and ‘make install’
- Install Jasper using
- ./configure –prefix=DIR CFLAGS=-fPIC
- ‘make’, ‘make check’ and ‘make install’
- Install grib using
- ./configure –prefix=DIR CFLAGS=-fPIC –with-netcdf=DIR –with-jasper=DIR
- ‘make’, ‘make check’ and ‘make install’
- Install cdo using
- ./configure -prefix=DIR CFLAGS=-fPIC -with-netcdf=DIR -with-jasper=DIR -with-hdf5=DIR -with-grib_api=DIR
- ‘make’, ‘make check’ and ‘make install’
No comments:
Post a Comment