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.
Clay, > Thank you for your help. I figured out how to enter the directory but now I > am receiving another error when I enter make. > > $ make > make[1]: Entering directory > `/cygdrive/c/users/cplvl/downloads/netcdf-perl-1.2.3/src' > make[2]: Entering directory > `/cygdrive/c/users/cplvl/downloads/netcdf-perl-1.2.3/src' > cd perl && perl Makefile.PL POLLUTE=0 > Checking if your kit is complete... > Looks good > Warning (mostly harmless): No library found for -lnetcdf > Writing Makefile for NetCDF > Writing MYMETA.yml and MYMETA.json > > > making `dynamic' in directory > /cygdrive/c/users/cplvl/downloads/netcdf-perl-1.2.3/src/perl > > > make[3]: Entering directory > `/cygdrive/c/users/cplvl/downloads/netcdf-perl-1.2.3/src/perl' > Makefile:466: *** multiple target patterns. Stop. > make[3]: Leaving directory > `/cygdrive/c/users/cplvl/downloads/netcdf-perl-1.2.3/src/perl' > Makefile:125: recipe for target `perl/dynamic' failed > make[2]: *** [perl/dynamic] Error 1 > make[2]: Leaving directory > `/cygdrive/c/users/cplvl/downloads/netcdf-perl-1.2.3/src' > Makefile:77: recipe for target `decision' failed > make[1]: *** [decision] Error 2 > make[1]: Leaving directory > `/cygdrive/c/users/cplvl/downloads/netcdf-perl-1.2.3/src' > Makefile:39: recipe for target `all' failed > make: *** [all] Error 2 > > I see it says "No library found for -lnetcdf" however in that directory there > is the libnetcdf.a file. Is that the correct library file? That's the correct library file but "-lnetcdf" might not be enough: the "-L..." option is usually also used in order to specify the containing directory. For example: LD_NETCDF="-L/cygdrive/c/strawberry/lib -lnetcdf" ./configure ... >configure.log 2>&1 The directory containing the netCDF header-file can be similarly specified: CPP_NETCDF=-I/cygdrive/c/strawberry/include LD_NETCDF="-L/cygdrive/c/strawberry/lib -lnetcdf" ./configure ... >configure.log 2>&1 The above 2 commands assume that you use a standard shell. If you one with csh(1) syntax, then the CPP_NETCDF and LD_NETCDF variables have to be set as environment variables (or in the CUSTOMIZE file). Be sure to execute the command "make distclean" before re-executing the configure(1) script. > Thanks again > > Clay Regards, Steve Emmerson Ticket Details =================== Ticket ID: XOS-274016 Department: Support netCDF Perl Priority: Normal Status: Closed