[ncl-install] Trouble with ncl_ncarg 5.2.1. install
Mary Haley
haley at ucar.edu
Tue Jan 25 15:27:40 MST 2011
Hi Vanesa,
It looks like you told the NCL build (via the "Configure" script) that you have a NetCDF-4 enabled version of NetCDF, but you are either linking against NetCDF 3.6.x, or a version of NetCDF 4.x that was compiled without "--enable-netcdf-4" being set.
If you need compression support for NetCDF files, then you will need to build NetCDF version 4.1.1 and make sure you include "--enable-netcdf-4". Please see:
http://www.ncl.ucar.edu/Download/build_from_src.shtml#NetCDF
You'll note that you have four different choices with how you build NetCDF, and then you have to make sure that when you run NCL's "Configure" program, that you answer the questions consistent with how you built NetCDF.
--Mary
On Jan 25, 2011, at 11:09 AM, Vanesa Bdm wrote:
> Hello: I'm trying to install nvl_ncarg 5.2.1 in a debian machine, but I get this error..
>
> icc -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -O -I../../../.././include -I/usr/X11R6 -I/usr/local/netcdf/include -DLinux -DMAJOR=2 -DUSE_NETCDF4 -DBuildGRIB2 -DNIO_LIB_ONLY -DSYSV -D_POSIX_SOURCE -D_XOPEN_SOURCE -DByteSwapped -D__UNIXOS2__ -DNeedFuncProto -c -o NclNetCdf.o NclNetCdf.c
>
> NclNetCdf.c(769): error: identifier "NC_NETCDF4" is undefined
>
> mode = (NC_NOCLOBBER|NC_NETCDF4|NC_CLASSIC_MODEL);
>
> ^
>
> NclNetCdf.c(769): error: identifier "NC_CLASSIC_MODEL" is undefined
>
> mode = (NC_NOCLOBBER|NC_NETCDF4|NC_CLASSIC_MODEL);
>
> ^
>
> compilation aborted for NclNetCdf.c (code 2)
>
> make[5]: *** [NclNetCdf.o] Error 2
>
> make[5]: se sale del directorio `/home/usuario/ncl_ncarg-5.2.1/ni/src/lib/nio'
>
> make[4]: *** [install] Error 2
>
> make[4]: se sale del directorio `/home/usuario/ncl_ncarg-5.2.1/ni/src/lib'
>
> Making install in ./ni/src/ncl
>
>
> What I'm doing wrong?
>
>
> Regards
>
>
> _______________________________________________
> ncl-install mailing list
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-install
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/ncl-install/attachments/20110125/3c9cf8e9/attachment.html
More information about the ncl-install
mailing list