[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

971121: Installing decoder.tar.gz (cont.)

This archive contains answers to questions sent to Unidata support through mid-2025. Note that the archive is no longer being updated. We provide the archive for reference; many of the answers presented here remain technically correct, even if somewhat outdated. For the most up-to-date information on the use of NSF Unidata software and data services, please consult the Software Documentation first.


  • Subject: 971121: Installing decoder.tar.gz (cont.)
  • Date: Fri, 21 Nov 1997 07:33:18 -0700

>From: BEAUBOUCHER Nathalie <address@hidden>
>Organization: Glaciology Laboratory
>Keywords: 199711140957.CAA01497 decoders link configure netCDF

Nathalie,

>Tnakd for your answer. I've just tried this syntax :
>
>cc -g emalloc.o gbds.o gbytem.o gdes.o get_prod.o grib1.o gribtypes.o
>inetutil.o levels.o params.o product_data.o quasi.o timeunits.o ulog.o
>gribtonc.o mkdirs_open.o nc.o ncfloat.o nuwg.o recs.o units.o 
>-L/usr/local/netcdf/src/libsrc -lnetcdf  -L/usr/local/udunits/lib
>-ludunits -lm  -o gribtonc 
>But it doesn't work, an error message occured :
>ld: cannot open -lnetcdf: No such file or directory
>
>What does -it mean ld ??? It's normal that -lnetcdf is not
>found because it's not a file ! 

The decoders you are trying to build must be linked against our netCDF
and udunits libraries.  The specification '-L/usr/local/netcdf/src/libsrc
-lnetcdf -L/usr/local/udunits/lib -ludunits' is telling configure what
to put in the Makefile that it builds in order to locate these libraries.

>I don't understand. I've also tried -L/usr/local/netcdf/src/libsrc -l
>netcdf  -L/usr/local/udunits/lib -l udunits -lm  -o gribtonc 
>but : 
>cc: netcdf: No such file or directory
>cc: udunits: No such file or directory

If you don't have the netcdf and udunits libraries on your system, you will
need to grab and build the packages before you can successfully link
the decoders.  These packages can both be found on our anonymous
FTP server, ftp.unidata.ucar.edu:

netCDF:  pub/netcdf/netcdf.tar.Z
udunits: pub/udunits/udunits.tar.Z

>Thanks for your help.

You are welcome.

Tom Yoksas