[netcdfgroup] netcdf under RedHat 5


Good Afternoon --

I'm trying to compile netcdf 4.1.1. I'm bumping into a complation error
under Redhat Enterprise Linux Server release 5.4
(kernel .6.18-164.11.1.el5 #1 SMP). Here's the error message:

nc4var.c: In function nc_set_var_chunk_cache_ints:
nc4var.c:128: error: H5D_CHUNK_CACHE_NBYTES_DEFAULT undeclared (first use
in this function)
nc4var.c:128: error: (Each undeclared identifier is reported only once
nc4var.c:128: error: for each function it appears in.)
nc4var.c:129: error: H5D_CHUNK_CACHE_NSLOTS_DEFAULT undeclared (first use
in this function)
nc4var.c:130: error: H5D_CHUNK_CACHE_W0_DEFAULT undeclared (first use in
this function)
make[2]: *** [nc4var.lo] Error 1
make[2]: Leaving directory `/usr/local/netcdf-4.1.1/libsrc4'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/local/netcdf-4.1.1'
make: *** [all] Error 2


I did compile and install (with apparent success) hdf5 before attempting
to compile netcdf.

Does anyone know the way to solve this? Am I missing and option statement
when I try to "make" netcdf?


Here's the sequence of commands:

# cd /usr/local
# tar zxvf hdf5-1.8.1.tar.gz
# cd hdf5-1.8.1
# ./configure
# make install
(apparently no problems building hdf5)

# make clean
# cd ..
# tar zxvf netcdf-4.1.1.tar.gz
# cd netcdf-4.1.1
# ./configure --enable-netcdf-4 --with-hdf5=/usr/local/hdf5-1.8.1/hdf5/
# make

Thanks,

Martin



  • 2010 messages navigation, sorted by:
    1. Thread
    2. Subject
    3. Author
    4. Date
    5. ↑ Table Of Contents
  • Search the netcdfgroup archives: