Dear,

Specify the location for zlib library as follows:

./configure --prefix=/path/to/netcdf/directory  --with-zlib=/path/to/location/of/zlib

because of --with-hdf5=/path/to/location/of/hdf5 option does not work for necdf-4.1.3, you need to export HDF5 location paths as follows:

    export CPPFLAGS=-I/location/to/hdf5/include/
    export LDFLAGS=-L/location/to/hdf5/lib
    export LD_LIBRARY_PATH=/location/to/hdf5/lib

 
I hope these will help!

Enjoy
Tamirat Bekele Jimma

--- On Thu, 12/15/11, Saidat Opeyemi Balogun <bintbal@yahoo.com> wrote:

From: Saidat Opeyemi Balogun <bintbal@yahoo.com>
Subject: [RegCNET] error installing Netcdf
To: "regcnet@lists.ictp.it" <regcnet@lists.ictp.it>
Date: Thursday, December 15, 2011, 11:51 AM

pls can anyone assist me in providing solution to the error "
configure: error: Can't find or link to the z library. Turn off netCDF-4 and opendap with --disable-netcdf-4 --disable-dap, or see config.log for errors", i got in configuring netcdf 4.1.3 on ubuntu 10.4 LTS. i will be glad for the help. Attached is the config.log. 
 
Bintbal

-----Inline Attachment Follows-----

_______________________________________________
RegCNET mailing list
RegCNET@lists.ictp.it
https://lists.ictp.it/mailman/listinfo.cgi/regcnet