[ncl-install] NCL install with NetCDF-4 undeclared variable NC_NETCDF4
Mary Haley
haley at ucar.edu
Tue Feb 17 07:36:21 MST 2009
Hi Marcin,
If you want classic NetCDF 4 support, then you will need
to build NetCDF 4.x with --enable-netcdf set, and make
sure --disable-netcdf-4 is not set.
Everything else you're doing is correct.
You may also want to look at #6 at:
http://www.ncl.ucar.edu/Download/build_from_src.shtml#Troubleshooting
With the newer versions of HDF, the "hdf/netcdf.h" include
file doesn't get installed, so you need to remove this
reference from the NCL code.
--Mary
On Mon, 16 Feb 2009 15:42:37 -0500
Marcin Sliwowski <ms275 at duke.edu> wrote:
> 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
>
> _______________________________________________
> ncl-install mailing list
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-install
More information about the ncl-install
mailing list