Project

General

Profile

Building to enable full .nc (.nc .nc4c .nc4)

Added by Craig Wallace almost 7 years ago

Hello CDO community.

I had issues building on Ubuntu 14 - despite proper netcdf and hdf5 libraries.

README file in package download suggests:

./configure --with-netcdf=<netCDF-4 root directory> --with-hdf5=<HDF5 root directory>

is sufficient.

This did not work for me. nc4 files would not be processed. After considerable investigation I found that:

./configure --enable-netcdf --enable-zlib --with-netcdf=<netCDF-4 root directory> --with-hdf5=<HDF5 root directory>

then
make
sudo make install

worked.

If this applies to others too then I suggest that the README file is modified.

Craig Wallce


Replies (2)

RE: Building to enable full .nc (.nc .nc4c .nc4) - Added by Craig Wallace almost 7 years ago

To clarify: it was the addition of

--enable-netcdf and --enable-zlib which led to success. I, obvioulsy, applied make && make install to the first formulation too :)

RE: Building to enable full .nc (.nc .nc4c .nc4) - Added by Ralf Mueller almost 7 years ago

This is really strange, because there are no such options

--enable-netcdf --enable-zlib
in CDO and CDI

Even if I build cdo-1.8.2 with and without these options, they do not influence the resulting Makefiles at all.

If you are missing some support in the debian/ubuntu package, you might contact the package maintainer: https://packages.debian.org/de/sid/cdo

The support for writing and reading netcdf4 files comes with the netcdf installation used to build CDO. Could be, that netcdf4 is disabled, you can check it with

nc-config --has-nc4

hth
ralf

    (1-2/2)