Hello Nick,
I should report and say thank you very much for this.
After slightly modifying the script for my configuration, I can say that
it is all working well.
Sorry for all the emails. Still not sure what was wrong on my side but
that's a different issue ;)
Again thank you very much and I am sure your script would be useful for
many people.
Kind regards,
Jean-Jo
Le 27/09/16 à 21:39, Nick Papior a écrit :
Dear list,
Several have asked questions about installation of NetCDF4 successfully.
If you simply download NetCDF and install it using configure without
any flags you will only get support for CDF-3.
Although you have downloaded NetCDF-4.4.1 it will NOT intrinsically
install NetCDF with CDF-4 support. I know this is very confusing, and
it is indeed very unfortunate.
To further complicate the issue, SIESTA requires the Fortran library
which requires a second installation.
To ease the use of the NetCDF features I have created a script which
should install NetCDF (source version: 4.4.0) with full CDF4 support.
The script has been tested on Debian.
All you need to do is download these sources to your installation
directory:
http://zlib.net/zlib-1.2.8.tar.gz
https://support.hdfgroup.org/ftp/HDF5/releases/hdf5-1.8.16/src/hdf5-1.8.16.tar.bz2
https://github.com/Unidata/netcdf-c/archive/v4.4.0.tar.gz
https://github.com/Unidata/netcdf-fortran/archive/v4.4.3.tar.gz
Also download the attached install.sh script to your installation
directory.
The installation script will NOT install the parallel version, but you
should be able to adapt the script accordingly if you really want this
feature enabled.
Please run through the script and read the comments to ensure that it
will do as you requested.
I will probably not be able to help you change the script to your
liking, but feel free to post any changes that adhere to different
compilers etc.
Once you have edited the script and read the comments, you may run the
script:
$> bash ./install.sh
and it will install, first zlib, then hdf5, then netcdf-c and lastly,
netcdf-fortran.
--
Kind regards Nick