[ncl-install] help with ncl compilation

Evi Becerra evita.ba at gmail.com
Thu Sep 30 19:13:12 MDT 2010


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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/ncl-install/attachments/20100930/1be27210/attachment.html 


More information about the ncl-install mailing list