[gradsusr] Enable netcdf 4.1.1 option in grads configure file
Huber Paúl Gilt López
huber.gilt at igp.gob.pe
Fri Jun 11 17:24:19 EDT 2010
Hello Jennifer,
Thanks you for your help, I just enabled the netcdf option but now after
make command, akin the error message:
gcc -DHAVE_CONFIG_H -I. -I../../supplibs/include/udunits
-I../../supplibs/include/netcdf -I../../supplibs/include/hdf5
-I/usr/include/hdf -g -O2 -c gasdf.c
gasdf.c: In function 'read_metadata':
gasdf.c:2278: error: 'name' undeclared (first use in this function)
gasdf.c:2278: error: (Each undeclared identifier is reported only once
gasdf.c:2278: error: for each function it appears in.)
make[2]: *** [gasdf.o] Error 1
make[2]: Leaving directory `/home/huber/grads/grads-2.0.a8/src'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/huber/grads/grads-2.0.a8/src'
make: *** [all-recursive] Error 1
How can I fix this undeclared name?
Please help me,
Best regards,
Huber
_____
De: gradsusr-bounces at gradsusr.org [mailto:gradsusr-bounces at gradsusr.org] En
nombre de Jennifer Adams
Enviado el: viernes, 11 de junio de 2010 13:37
Para: GrADS Users Forum
Asunto: Re: [gradsusr] Enable netcdf 4.1.1 option in grads configure file
On Jun 11, 2010, at 2:11 PM, Huber Paúl Gilt López wrote:
Hello,
Im trying to build grads with netcdf option enable, after I configured the
grads with this command:
./configure -prefix=/opt/grads-2.0.a8 --with-sdf
--with-netcdf-include=/home/huber/grads/supplibs/include/netcdf > config.out
You should not need to specify any configure options (other than --prefix)
to get netcdf support. I did not write any code to support the
"--with-netcdf-include" option...
I had the following message that ludunits library is not found:
Checking in supplibs for libraries to support netcdf-4 ...
checking for udunits.h... (cached) yes
checking for utInit in -ludunits... (cached) no
- netcdf-4 disabled
Then, I tried to build the source ldudunits library with the make command,
and also I had this error:
cc -o udunits -O udunits.o -R/data/hoop/udunits-1.11.7/src/lib
-L/data/hoop/udunits-1.11.7/src/lib -ludunits
-R/data/hoop/udunits-1.11.7/src/port/misc
-L/data/hoop/udunits-1.11.7/src/port/misc -ludport -ly -lm
(Bundled) cc: warning 922: "-O" is unsupported in the bundled compiler,
ignored.
(Bundled) cc: warning 901: unknown option:
`-R/data/hoop/udunits-1.11.7/src/lib': use +help for online documentation.
(Bundled) cc: warning 901: unknown option:
`-R/data/hoop/udunits-1.11.7/src/port/misc': use +help for online
documentation.
ld: Can't find library for -ludunits
Fatal error.
Why the compilation needs the ludunits library, I was thought this library
will be the output?
What you're trying to build here is a utility called 'udunits' -- that is
something that is built along with the library, but it is not necessary for
GrADS.
Look for a file called libudunits.a -- that is what GrADS needs -- and put
it in your $SUPPLIBS/lib location.
--Jennifer
Please help me
Best regards,
Huber Paul Gilt Lopez
IGP-Peru
_______________________________________________
gradsusr mailing list
gradsusr at gradsusr.org
http://gradsusr.org/mailman/listinfo/gradsusr
--
Jennifer M. Adams
IGES/COLA
4041 Powder Mill Road, Suite 302
Calverton, MD 20705
jma at cola.iges.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gradsusr.org/pipermail/gradsusr/attachments/20100611/1031c56a/attachment-0003.html
More information about the gradsusr
mailing list