[ncl-install] [help] I have trouble to build NCL 5.0.0

Mary Haley haley at ucar.edu
Tue Jul 22 14:43:29 MDT 2008


Begin forwarded message:

> From: 박순영 <soon at pusan.ac.kr>
> Date: July 22, 2008 8:16:03 AM MDT
> To: <ncl-install at ucar.edu>
> Subject: [ncl-install] [help] I have trouble to build NCL 5.0
>
> Hi,
> First of all, please look my error massage from 'make all install
>>& make-out &'.
>
> Making install in ./ni/src/ncl
> make[3]: Entering directory `/home/psy/src/ncl/ncl_ncarg-5.0.0/ni/
> src/ncl'
> gcc -c -DLINUX -ansi -fPIC -D_FILE_OFFSET_BITS=64 -
> D_LARGEFILE_SOURCE -O  -I../../.././include -I/usr/X11R6/include  -
> DLinux -DMAJOR=2       -DSYSV -D_POSIX_SOURCE -D_XOPEN_SOURCE -
> DByteSwapped -DNeedFuncProto  NclHDF.c
> NclHDF.c:66: error: `MAX_VAR_DIMS' undeclared here (not in a function)
> NclHDF.c: In function `HDFToNCLName':
> NclHDF.c:311: error: `MAX_NC_NAME' undeclared (first use in this
> function)
> NclHDF.c:311: error: (Each undeclared identifier is reported only once
> NclHDF.c:311: error: for each function it appears in.)
> NclHDF.c: In function `GetSDInfo':
> NclHDF.c:465: error: `MAX_NC_NAME' undeclared (first use in this
> function)
> NclHDF.c: In function `HDFOpenFile':
> NclHDF.c:650: error: `MAX_NC_NAME' undeclared (first use in this
> function)
> NclHDF.c: In function `HDFReadVar':
> NclHDF.c:1250: error: `MAX_NC_DIMS' undeclared (first use in this
> function)
> NclHDF.c: In function `HDFWriteVar':
> NclHDF.c:1470: error: `MAX_NC_DIMS' undeclared (first use in this
> function)
> NclHDF.c: In function `HDFAddVar':
> NclHDF.c:1953: error: `MAX_NC_DIMS' undeclared (first use in this
> function)
> make[3]: *** [NclHDF.o] Error 1
> make[3]: Leaving directory `/home/psy/src/ncl/ncl_ncarg-5.0.0/ni/
> src/ncl'
>
> What should I do? How do I DECLARE `MAX_VAR_DIMS', `MAX_NC_NAME'
> and `MAX_NC_DIMS'. ^^;
>
> TIA
> Soon-Young Park from Korea

Dear Soon-Young,

It looks like HDF-4 wasn't built correctly for what NCL needs.

If you don't already HDF4.2r2 or HDF4.2r3, then please download one of
these versions and then follow the instructions here:

    http://www.ncl.ucar.edu/Download/build_from_src.shtml#HDF-4

You need to compile with the "--disable-netcdf" option so that the HDF
build doesn't try to build its own version of the NetCDF software.

If you already had one of these versions, and just need to rebuild HDF
with the above option, make sure you type:

    make distclean

first so that it builds from scratch.

--Mary



More information about the ncl-install mailing list