Hi Leslie: Both PDL and PDL::NetCDF require some manual tuning to install, so they don't install automatically from the cpan shell.
The approach I always take is to download the latest PDL from CPAN: http://search.cpan.org/CPAN/authors/id/C/CH/CHM/PDL-2.4.4.tar.gz and install it manually: 1) Untar 2) Install prereqs: 'Astro::FITS::Header' => 0, 'File::Spec' => 0.6, 'Filter::Util::Call' => 0, # for PDL::NiceSlice 'Text::Balanced' => 0, # for PDL::NiceSlice 'Inline' => 0.43, *These* you can install with the cpan shell! 3) Install PDL: perl Makefile.PL make make test make install If this does not work, then I would edit the ./perldl.conf file to get rid of any external packages you won't need (stuff like TRI_D, SLATEC, etc). I would set WITH_3D to zero, for example and perhaps other WITH_ flags. Once PDL is installed, then download PDL::NetCDF from CPAN: http://search.cpan.org/CPAN/authors/id/D/DH/DHUNT/PDL-NetCDF-4.02.tar.gz The trick here is to tell the PDL-NetCDF module where to find the netCDF libraries and headers. Some standard locations are encoded in the module, but for anything non-standard, you must specify the location with environment variables: NETCDF_LIBDIR and NETCDF_INCDIR. In my case I do this: (untar PDL-NetCDF-4.02.tar.gz and cd to top directory) export NETCDF_LIBDIR=/ops/tools/lib export NETCDF_INCDIR=/ops/tools/include perl Makefile.PL make make test make install Of course, to do this, you must have installed the netCDF library (available from http://www.unidata.ucar.edu/software/netcdf/) Other folks on the PDL list may have some better or more current ideas, please chime in! Regards, Doug Hunt [email protected] Software Engineer UCAR - COSMIC, Tel. (303) 497-2611 On Fri, 18 Sep 2009, Leslie(Pete) Boyd wrote: > > Hi Douglas, > > I am attempting to install the PDL::NetCDF module using cpanp > on a SGI Altix 3700. > > Getting the below message from cpanp. > > Any suggestions? > > Thanks. > > Going to read /tmp/.cpan/sources/modules/03modlist.data.gz > Going to write /tmp/.cpan/Metadata > Running install for module PDL::NetCDF > > The module PDL::NetCDF isn't available on CPAN. > > Either the module has not yet been uploaded to CPAN, or it is > temporary unavailable. Please contact the author to find out > more about the status. Try 'i PDL::NetCDF'. > > cpan> i PDL::NetCDF > Strange distribution name [PDL::NetCDF] > Module id = PDL::NetCDF > DESCRIPTION Reads/Writes NetCDF files from/to PDL objs > CPAN_USERID DHUNT (Douglas Hunt <[email protected]>) > CPAN_VERSION undef > CPAN_FILE Contact Author Douglas Hunt <[email protected]> > DSLI_STATUS RdcO (released,developer,C,object-oriented) > INST_FILE (not installed) > > > cpan> > > > ****************** > Leslie(Pete) Boyd > Contractor: The rich man isn't the one who has the most, > Vision Technoligies but the one who needs the least. > Senior Systems Engineer > US EPA Rm. E460 --- IN GOD WE TRUST -- > 919/541-1438 > ****************** > > > ------------- End Forwarded Message ------------- > > > ****************** > Leslie(Pete) Boyd > Contractor: The rich man isn't the one who has the most, > Vision Technoligies but the one who needs the least. > Senior Systems Engineer > US EPA Rm. E460 --- IN GOD WE TRUST -- > 919/541-1438 > ****************** > > _______________________________________________ Perldl mailing list [email protected] http://mailman.jach.hawaii.edu/mailman/listinfo/perldl
