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.
On Tue, 11 Jul 2000, Matthew Maschmann wrote: > Steve, > > Good morning. I have a new problem for you. Netcdf-perl was > successfully built (so we thought), but when I run a make test for the > decoders installation, I get errors suggesting that netcdf-perl is not > installed. Is there some configure file I missed that points to the > netcdf-perl installation? I have attached my test.log file. > > Thanks, > Matt > > Matt, I looked at your log, it appears that invocation of perl cannot find the NetCDF perl module ie. netCDF.pm The netCDF.pm should be located in the lib dir, similar to /local/lib/perl5/netCDF.pm A procedure to check the perl lib paths is to run a decoder in a debugger, ie % perl -d metar2nc metar.cdl Then do a print of @INC, this shows the paths perl is looking for modules. ie DB<2> p "@INC" /usr/local/lib/perl5/sun4-solaris/5.004 /usr/local/lib/perl5 /usr/local/lib/perl5/site_perl/sun4-solaris /usr/local/lib/perl5/site_perl . The path to your netCDF.pm must not be included, so find out the path and add it to @INC. If you path to netCDF.pm is /usr/lib/perl5 then add the path via: push( @INC, "/usr/lib/perl5" ) ; before the use NetCDF ; statement in the decoders. I don't know the exact reason this happens but this should solve the problem. Robb... =============================================================================== Robb Kambic Unidata Program Center Software Engineer III Univ. Corp for Atmospheric Research address@hidden WWW: http://www.unidata.ucar.edu/ ===============================================================================