[ncl-install] NCL install with NetCDF-4 undeclared variable NC_NETCDF4

Marcin Sliwowski ms275 at duke.edu
Mon Feb 16 13:42:37 MST 2009


Hello Everyone,

I installed netCDF-4 and used the following config flags:

--prefix=/usr/local/netcdf-4.0-pgi --disable-shared
--enable-large-file-tests --enable-docs-install --disable-netcdf-4

I installed hdf4.2r4 and used the following config flags:

--prefix=/usr/local/hdf4.2r4-pgi/ --disable-netcdf
--with-jpeg=/usr/local/jpeg-6b-pgi


My problem is on compiling NCL v5.0.0, Two problems encountered and
solved via troubleshooting guide, one last error remains.

During the NCL configure I say yes to include netCDF-4 support into NCL
because according to the way I understand it I am only asking for the
"classic" NetCDF support not the new extended netCDF, which is why I set
the flag --disable-netcdf-4 on the config for netCDF-4

Error 1: PGC-F-0206-Can't find include file hdf/netcdf.h (NclHDF.c: 26)
Solved by commenting out: #include <hdf/netcdf.h> in NclHDF.c and
NclHDFEOS.c as suggested by troubleshooting guide

Error 2: PGC-S-0039-Use of undeclared variable MAX_NC_NAME (NclHDF.c: 313)
Solved by inserting the #defines as indicated in the troubleshooting guide

Error 3: PGC-S-0039-Use of undeclared variable NC_NETCDF4 (NclNetCdf.c: 744)
PGC-S-0039-Use of undeclared variable NC_CLASSIC_MODEL (NclNetCdf.c: 744)

This error does not occur when I answer "no" to the include netCDF-4
support into NCL, but I want the classic NetCDF-4 support in NCL.

Does anyone have any guidance or advice to get by this error?

Thank You,
Marcin

-- 
Marcin Sliwowski
Systems Programmer
Duke University - Pratt School of Engineering
919-660-8450



More information about the ncl-install mailing list