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

[netCDFPerl #XOS-274016]: Install netCDF Perl in Cygwin


> 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 

    LD_NETCDF="-L/cygdrive/c/strawberry/lib -lnetcdf" ./configure ... 
>configure.log 2>&1

The directory containing the netCDF header-file can be similarly specified:

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

Steve Emmerson

Ticket Details
Ticket ID: XOS-274016
Department: Support netCDF Perl
Priority: Normal
Status: Closed

NOTE: All email exchanges with Unidata User Support are recorded in the Unidata inquiry tracking system and then made publicly available through the web. If you do not want to have your interactions made available in this way, you must let us know in each email you send to us.