[ncl-install] help with ncl compilation
Mary Haley
haley at ucar.edu
Fri Oct 1 09:06:20 MDT 2010
Hi Eva,
It looks like maybe your NetCDF wasn't built with NetCDF 4 classic support turned on.
What I recommend is downloading the latest NetCDF 4.1.x version (not 4.0.x), and following the instructions at:
http://www.ncl.ucar.edu/Download/build_from_src.shtml#NetCDF
It is important to follow the "With classic NetCDF-4 support, with OPeNDAP support" instructions, and make sure you include --enable-netcdf-4 on the compile line.
--Mary
On Sep 30, 2010, at 7:13 PM, Evi Becerra wrote:
>
> Hello all.
>
> I am trying to install NCL-V.5.2.1, I followed the guide that is available in the web page "How to build NCL".
> My Linux version is Ubuntu 10 and my PC is AMD64 Dual Core.
> I installed almost all the packages and only two packages were not installed: Vis5D+ and GDAL/PROJ.4.
> The NETCDF-V.4.0.1 and the step 3. With "classic" NetCDF-4 support, with OPeNDAP support.
> After many times to install it my installation was not successful and I got these errors.
>
>
> - Masquer le texte des messages précédents -
> make[4]: Entering directory `/usr/local/src/ncl_ncarg-5.2.1/ni/src/lib/nio'
> gcc -ansi -fPIC -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -O -I../../../.././include -I/usr/include/X11 -I/usr/include/X11/extensions -I/usr/local/include/cairo -I/usr/local/include/jasper -I/usr/local/include/freetype2 -I/usr/local/include/fontconfig -I/usr/local/include/curl -I/usr/local/include/hdf -I/usr/local/include/X11 -I/usr/local/include/libpng14 -I/usr/local/include/ -I/usr/local/include/X11/extensions -DLinux -DMAJOR=2 -DUSE_NETCDF4 -DBuildHDFEOS -DBuildHDFEOS5 -DBuildGRIB2 -DNIO_LIB_ONLY -DSYSV -D_POSIX_SOURCE -D_XOPEN_SOURCE -DByteSwapped -DNeedFuncProto -c -o NclNetCdf.o NclNetCdf.c
> NclNetCdf.c: In function ‘NetCreateFile’:
> NclNetCdf.c:763: error: ‘NC_64BIT_OFFSET’ undeclared (first use in this function)
> NclNetCdf.c:763: error: (Each undeclared identifier is reported only once
> NclNetCdf.c:763: error: for each function it appears in.)
> NclNetCdf.c:769: error: ‘NC_NETCDF4’ undeclared (first use in this function)
> NclNetCdf.c:769: error: ‘NC_CLASSIC_MODEL’ undeclared (first use in this function)
> make[4]: *** [NclNetCdf.o] Error 1
> make[4]: Leaving directory `/usr/local/src/ncl_ncarg-5.2.1/ni/src/lib/nio'
> make[3]: Leaving directory `/usr/local/src/ncl_ncarg-5.2.1/ni/src/lib'
> Making ./ni/src/ncl
> make[4]: Entering directory `/usr/local/src/ncl_ncarg-5.2.1/ni/src/lib/nio'
> gcc -ansi -fPIC -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -O -I../../../.././include -I/usr/include/X11 -I/usr/include/X11/extensions -I/usr/local/include/cairo -I/usr/local/include/jasper -I/usr/local/include/freetype2 -I/usr/local/include/fontconfig -I/usr/local/include/curl -I/usr/local/include/hdf -I/usr/local/include/X11 -I/usr/local/include/libpng14 -I/usr/local/include/ -I/usr/local/include/X11/extensions -DLinux -DMAJOR=2 -DUSE_NETCDF4 -DBuildHDFEOS -DBuildHDFEOS5 -DBuildGRIB2 -DNIO_LIB_ONLY -DSYSV -D_POSIX_SOURCE -D_XOPEN_SOURCE -DByteSwapped -DNeedFuncProto -c -o NclNetCdf.o NclNetCdf.c
> NclNetCdf.c: In function ‘NetCreateFile’:
> NclNetCdf.c:763: error: ‘NC_64BIT_OFFSET’ undeclared (first use in this function)
> NclNetCdf.c:763: error: (Each undeclared identifier is reported only once
> NclNetCdf.c:763: error: for each function it appears in.)
> NclNetCdf.c:769: error: ‘NC_NETCDF4’ undeclared (first use in this function)
> NclNetCdf.c:769: error: ‘NC_CLASSIC_MODEL’ undeclared (first use in this function)
> make[4]: *** [NclNetCdf.o] Error 1
> make[4]: Leaving directory `/usr/local/src/ncl_ncarg-5.2.1/ni/src/lib/nio'
> make[3]: Leaving directory `/usr/local/src/ncl_ncarg-5.2.1/ni/src/lib'
> Making ./ni/src/ncl
> make[3]: Entering directory `/usr/local/src/ncl_ncarg-5.2.1/ni/src/ncl'
> gcc -ansi -fPIC -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -I/usr/local/include -O -I../../.././include -I/usr/include/X11 -I/usr/include/X11/extensions -I/usr/local/include/cairo -I/usr/local/include/jasper -I/usr/local/include/freetype2 -I/usr/local/include/fontconfig -I/usr/local/include/curl -I/usr/local/include/hdf -I/usr/local/include/X11 -I/usr/local/include/libpng14 -I/usr/local/include/ -I/usr/local/include/X11/extensions -DLinux -DMAJOR=2 -DUSE_NETCDF4 -DBuildHDFEOS -DBuildHDFEOS5 -DBuildGRIB2 -DSYSV -D_POSIX_SOURCE -D_XOPEN_SOURCE -DByteSwapped -DNeedFuncProto -c -o NclNetCdf.o NclNetCdf.c
> NclNetCdf.c: In function ‘NetCreateFile’:
> NclNetCdf.c:763: error: ‘NC_64BIT_OFFSET’ undeclared (first use in this function)
> NclNetCdf.c:763: error: (Each undeclared identifier is reported only once
> NclNetCdf.c:763: error: for each function it appears in.)
> NclNetCdf.c:769: error: ‘NC_NETCDF4’ undeclared (first use in this function)
> NclNetCdf.c:769: error: ‘NC_CLASSIC_MODEL’ undeclared (first use in this function)
> make[3]: *** [NclNetCdf.o] Error 1
>
> I checked the binaries list and only two are missing: bin/MakeNcl and bin/ncl.
>
> Could you help me please I do not understand what I did wrong.
>
> Thanks so much.
>
> Evi Becerra
> Western Kentucky University. _______________________________________________
> 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/20101001/5e0069f8/attachment-0001.html
More information about the ncl-install
mailing list