[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Possible Errors
- Subject: Re: Possible Errors
- Date: Mon, 31 Jan 2005 13:55:09 -0700 (MST)
On Mon, 31 Jan 2005, Latimer, S wrote:
> I changed the directories as listed below in the CUSTOMIZE file. After
> running the command below, I found the following errors after executing the
> below commands:
>
> % make
>
the problem is that the netcdf binary release you have is not compatiable
with the decoders build. you need to download the netcdf src release and
build it. it usually builds 1st time. a couple of things,
% CC=gcc;export CC
% FC="";export FC
% ./configure from src dir
% make
% make test
% make install
my login didn't have any permissions so i couldn't fix any errors, all i
could do is look around for problems
robb...
> In file included from gribtonc.c:24:
> nc.h:12:20: netcdf.h: No such file or directory
> In file included from gribtonc.c:24:
> nc.h:30: parse error before "nc_type"
> nc.h:30: warning: no semicolon at end of struct or union
> nc.h:36: parse error before '}' token
> nc.h:36: warning: data definition has no type or storage class
> nc.h:40: parse error before "nclong"
> nc.h:40: warning: no semicolon at end of struct or union
> nc.h:41: warning: data definition has no type or storage class
> nc.h:65: parse error before "lset"
> nc.h:65: warning: no semicolon at end of struct or union
> nc.h:66: warning: data definition has no type or storage class
> nc.h:69: parse error before '}' token
> nc.h:69: warning: data definition has no type or storage class
> nc.h:79: parse error before "ncvar"
> nc.h:79: warning: no semicolon at end of struct or union
> nc.h:83: parse error before "models"
> nc.h:83: warning: data definition has no type or storage class
> nc.h:84: parse error before '*' token
> nc.h:84: warning: data definition has no type or storage class
> nc.h:91: parse error before '}' token
> nc.h:91: warning: data definition has no type or storage class
> nc.h:106: parse error before '*' token
> nc.h:106: warning: data definition has no type or storage class
> nc.h:107: parse error before "ncfile"
> In file included from gribtonc.c:33:
> units.h:29: parse error before "ncfile"
> gribtonc.c: In function `do_nc':
> gribtonc.c:229: `ncp' undeclared (first use in this function)
> gribtonc.c:229: (Each undeclared identifier is reported only once
> gribtonc.c:229: for each function it appears in.)
> make[1]: *** [gribtonc.o] Error 1
> make[1]: Leaving directory `/usr/local/decoders-3.0.7/src/gribtonc'
> make: *** [gribtonc/all] Error 1
>
> % make test (not sure whether the below statements are indeed errors)
>
> which: no ncgen in (/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin
> :/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/root/bin)
> metar tested ...... NOT OK
> ascii tested ...... NOT OK
> ldmConnect tested . NOT OK
> metar tested ...... NOT OK
> syn tested ........ NOT OK
> buoy tested ....... NOT OK
> upperair tested ... NOT OK
>
> % make install
>
> In file included from gribtonc.c:24:
> nc.h:12:20: netcdf.h: No such file or directory
> In file included from gribtonc.c:24:
> nc.h:30: parse error before "nc_type"
> nc.h:30: warning: no semicolon at end of struct or union
> nc.h:36: parse error before '}' token
> nc.h:36: warning: data definition has no type or storage class
> nc.h:40: parse error before "nclong"
> nc.h:40: warning: no semicolon at end of struct or union
> nc.h:41: warning: data definition has no type or storage class
> nc.h:65: parse error before "lset"
> nc.h:65: warning: no semicolon at end of struct or union
> nc.h:66: warning: data definition has no type or storage class
> nc.h:69: parse error before '}' token
> nc.h:69: warning: data definition has no type or storage class
> nc.h:79: parse error before "ncvar"
> nc.h:79: warning: no semicolon at end of struct or union
> nc.h:83: parse error before "models"
> nc.h:83: warning: data definition has no type or storage class
> nc.h:84: parse error before '*' token
> nc.h:84: warning: data definition has no type or storage class
> nc.h:91: parse error before '}' token
> nc.h:91: warning: data definition has no type or storage class
> nc.h:106: parse error before '*' token
> nc.h:106: warning: data definition has no type or storage class
> nc.h:107: parse error before "ncfile"
> In file included from gribtonc.c:33:
> units.h:29: parse error before "ncfile"
> gribtonc.c: In function `do_nc':
> gribtonc.c:229: `ncp' undeclared (first use in this function)
> gribtonc.c:229: (Each undeclared identifier is reported only once
> gribtonc.c:229: for each function it appears in.)
> make[3]: *** [gribtonc.o] Error 1
> make[3]: Leaving directory `/usr/local/decoders-3.0.7/src/gribtonc'
> make[2]: *** [installed_binfiles] Error 1
> make[2]: Leaving directory `/usr/local/decoders-3.0.7/src/gribtonc'
> make[1]: *** [installed_programs] Error 2
> make[1]: Leaving directory `/usr/local/decoders-3.0.7/src/gribtonc'
> make: *** [gribtonc/install] Error 1
>
>
> I then switched to the bin directory using 'cd ../bin' and ls with only
> gribdump and ncgen listed.
> Thanks again for all of your help.
>
> Stephen
>
>
>
>
> Stephen Latimer
> Meteorology Graduate Student
> Texas Tech University ATMO
> Lubbock, TX 79409
>
>
>
> -----Original Message-----
> From: Robb Kambic [mailto:address@hidden]
> Sent: Mon 1/31/2005 13:39
> To: Latimer, S
> Cc: decoders
> Subject: RE: udunits and netCDF
>
>
> here's what i found.
>
> your /usr/local/decoders-3.0.7/src/CUSTOMIZE file has the wrong paths:
>
> you have
> CPP_NETCDF=/usr/local/netcdf/include
>
> should be
>
> CPP_NETCDF=/usr/local/netcdf-3.6.0/include
>
> again should be
>
> LD_NETCDF='-L/usr/local/netcdf-3.6.0/lib -lnetcdf'
>
> udunits likewise:
>
> CPP_UDUNITS=-I/usr/local/udunits-1.11.7/include
> LD_UDUNITS='-L/usr/local/udunits-1.11.7/lib -ludunits'
>
> do these commands:
>
> % cd /usr/local/decoders-3.0.7/src
> % rm config.log config.status
> % ./configure
> % make look for error messages
> % make test look for error messages/ perl decoders will fail, that's ok
> % make install
> % cd ../bin
> % ls should have gribdump gribtocdl gribtonc
> % UDUNITS_PATH=/usr/local/udunits-1.11.7/etc/udunits.dat;export UDUNITS_PATH
> % ls $UDUNITS_PATH should find file udunits.dat
>
>
> at this point you should be able to run the gribtonc with the invocation
> you did before. if it says file not found, prefix with ./
>
> robb...
> ===============================================================================
> Robb Kambic Unidata Program Center
> Software Engineer III Univ. Corp for Atmospheric Research
> address@hidden WWW: http://www.unidata.ucar.edu/
> ===============================================================================
>
>
>
>
===============================================================================
Robb Kambic Unidata Program Center
Software Engineer III Univ. Corp for Atmospheric Research
address@hidden WWW: http://www.unidata.ucar.edu/
===============================================================================