Try to compile and install hdf5 and netcdf4 from source code.