Re: [help] I have trouble to build NCL 5.0.0

From: Mary Haley <haley_at_nyahnyahspammersnyahnyah>
Date: Tue, 22 Jul 2008 14:43:29 -0600 (MDT)

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: [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

_______________________________________________
ncl-install mailing list
ncl-install_at_ucar.edu
http://mailman.ucar.edu/mailman/listinfo/ncl-install
Received on Tue Jul 22 2008 - 14:43:29 MDT

This archive was generated by hypermail 2.2.0 : Tue Jul 22 2008 - 15:20:22 MDT