digdoug has asked for the wisdom of the Perl Monks concerning the following question:

I was able to get PDL installed in our central software depot, but the Grib build is not working. It bombs out running the makefile like this:

....cpan/build/PDL-IO-Grib-2-cxqhND>/usr/local/depot/perl-5.10.1/perl- +5.10.1/bin/perl Makefile.PL WARNING: DIR takes a ARRAY reference not a string/number. Please inform the author. WARNING: EXE_FILES takes a ARRAY reference not a string/number. Please inform the author. Checking if your kit is complete... Looks good Can't use string ("GribView.pl") as an ARRAY ref while "strict refs" i +n use at /usr/local/depot/perl-5.10.1/perl-5.10.1/lib/5.10.1/ExtUtils +/MM_Unix.pm line 1370.

Here's the Makefile...

.cpan/build/PDL-IO-Grib-2-cxqhND>cat Makefile.PL use ExtUtils::MakeMaker; WriteMakefile( NAME => 'PDL::IO::Grib', EXE_FILES => 'GribView.pl', VERSION_FROM => 'Grib.pm', DIR => 'Grib', dist => {COMPRESS => 'gzip', SUFFIX= +> 'gz'} );

Not sure where to go from here. ??

Replies are listed 'Best First'.
Re: PDL::IO::Grib build fail
by toolic (Bishop) on Jan 06, 2010 at 17:03 UTC
    Looking at the Makefile.PL file for one of my own CPAN modules, I believe the lines should be as follows:
    EXE_FILES => [ 'GribView.pl' ], DIR => [ 'Grib' ],
    Is it possible for you to locally hack the Makefile.PL file so that you can proceed?

    If that works, you could submit a patch on the PDL::IO::Grib site: Report a bug

    Update: Someone already reported this issue 6 years ago (without a patch) -- when I checked a few minutes ago, I could not even access the RT site.

    This module has no passing tests on any platforms, according to the CPAN Testers. One of the test failure reports shows your message. The last update to this module was made 10 years ago, and there is no response to the 6 year old bug report by the author. My guess is that the author is no longer supporting this module. You could attempt to send him an email (address provided in the module POD).

      Yes, I built it manually and make/make install went fine. Thanks very much! My Makefile.PL for reference:
      use ExtUtils::MakeMaker; WriteMakefile( NAME => 'PDL::IO::Grib', EXE_FILES => ['GribView.pl'], VERSION_FROM => 'Grib.pm', DIR => ['Grib'], dist => {COMPRESS => 'gzip', SUFFIX= +> 'gz'} );
Re: PDL::IO::Grib build fail
by Khen1950fx (Canon) on Jan 07, 2010 at 08:26 UTC
    toolic hit the nail on the head. Here's a working Makefile.PL:
    use ExtUtils::MakeMaker; WriteMakefile( NAME => 'PDL::IO::Grib', EXE_FILES => ['GribView.pl'], VERSION_FROM => 'Grib.pm', DIR => ['Grib'], dist => {COMPRESS => 'gzip -9f', SUFFIX=> 'gz'}, );