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

I am getting the following error when I try to install the PDL::Graphics::PLplot module. Building and testing PDL-Graphics-PLplot-0.74 ... FAIL

. The error I receive is
Can't locate PDL/Graphics/PLplot.pm in @INC (you may need to install t +he PDL::Graphics::PLplot module) Test Summary Report ------------------- t/plplot.t (Wstat: 512 Tests: 0 Failed: 0) Non-zero exit status: 2 Parse errors: No plan found in TAP output t/plplot_library_tests.t (Wstat: 512 Tests: 0 Failed: 0) Non-zero exit status: 2 Parse errors: No plan found in TAP output Files=3, Tests=0, 0 wallclock secs ( 0.02 usr 0.01 sys + 0.18 cusr + 0.02 csys = 0.23 CPU) Result: FAIL Failed 2/3 test programs. 0/0 subtests failed. Makefile:803: recipe for target 'test_dynamic' failed make: *** [test_dynamic] Error 2 -> FAIL Installing PDL::Graphics::PLplot failed. See

Replies are listed 'Best First'.
Re: PDL::Graphics::PLplot fails on install
by jcb (Parson) on Aug 20, 2020 at 01:16 UTC

    Either there is a nasty bug in that package, or something is very wrong with your build environment. That error indicates that the test scripts, which are supposed to be run under special settings so they pick up the freshly-built extension, are not finding the module.

      The package was extracted from PDL, which needed sub-packages to make a dummy build rather than terminate the configure process. That dummy-build behaviour led to what was reported here, which is the false appearance of successful installation. That behaviour has just been removed, and that will be reflected in the upcoming PDL::Graphics::PLplot 0.77.
Re: PDL::Graphics::PLplot fails on install
by perlfan (Parson) on Aug 19, 2020 at 16:53 UTC
    This is not enough information. What OS, installation method, etc are you using?
      ./cpanm -L PDL::Graphics::PLplot; I tried force as well. Description: Ubuntu 16.04.7 LTS
        Hi newperldeveloper,

        The PDL::Graphics::PLplot distro is cunningly designed to play tricks. Here's what I get on Ubuntu-18.04, perl-5.32.0:
        $ cpanm -i PDL::Graphics::PLplot --> Working on PDL::Graphics::PLplot Fetching http://www.cpan.org/authors/id/D/DH/DHUNT/PDL-Graphics-PLplot +-0.74.tar.gz ... OK Configuring PDL-Graphics-PLplot-0.74 ... OK Building and testing PDL-Graphics-PLplot-0.74 ... OK Successfully installed PDL-Graphics-PLplot-0.74 1 distribution installed $
        But then:
        $ perl -MPDL::Graphics::PLplot -le 'print "ok";' Can't locate PDL/Graphics/PLplot.pm in @INC (you may need to install t +he PDL::Graphics::PLplot module) (@INC contains: /home/sisyphus/perl- +5.32.0-d/lib/site_perl/5.32.0/x86_64-linux /home/sisyphus/perl-5.32.0 +-d/lib/site_perl/5.32.0 /home/sisyphus/perl-5.32.0-d/lib/5.32.0/x86_6 +4-linux /home/sisyphus/perl-5.32.0-d/lib/5.32.0). BEGIN failed--compilation aborted.
        Turns out that I don't have the plplot library installed.
        The PDL-Graphics-PLplot distro is designed to fool the cpan and cpanm utilities into thinking that the build was a success, even when it failed.
        The cpan utility makes things a little more apparent:
        $ cpan -i PDL::Graphics::PLplot Loading internal logger. Log::Log4perl recommended for better logging Reading '/home/sisyphus/.cpan/Metadata' Database was generated on Thu, 20 Aug 2020 00:17:03 GMT Running install for module 'PDL::Graphics::PLplot' Checksum for /home/sisyphus/.cpan/sources/authors/id/D/DH/DHUNT/PDL-Gr +aphics-PLplot-0.74.tar.gz ok 'YAML' not installed, will not store persistent state Configuring D/DH/DHUNT/PDL-Graphics-PLplot-0.74.tar.gz with Makefile.P +L PDL is installed Checking PDL::Graphics::PLplot... Searching for libplplot.so library. Searching for libplplotd.so library. Cannot find plplot library (libplplotd.so), skipping PDL::Graphics::PL +plot Not building PDL::Graphics::PLplot Cannot find plplot library (libplplotd.so), skipping PDL::Graphics::PL +plot Not building PDL::Graphics::PLplot Checking if your kit is complete... Looks good DHUNT/PDL-Graphics-PLplot-0.74.tar.gz /home/sisyphus/perl-5.32.0-d/bin/perl Makefile.PL -- OK Running make for D/DH/DHUNT/PDL-Graphics-PLplot-0.74.tar.gz Could not read metadata file. Falling back to other methods to determi +ne prerequisites make: Nothing to be done for 'all'. DHUNT/PDL-Graphics-PLplot-0.74.tar.gz /usr/bin/make -- OK The current configuration of allow_installing_outdated_dists is 'ask/y +es', but for this option we would need 'CPAN::DistnameInfo' installed +. Please install 'CPAN::DistnameInfo' as soon as possible. As long as + we are not equipped with 'CPAN::DistnameInfo' this option does not t +ake effect Running make test for DHUNT/PDL-Graphics-PLplot-0.74.tar.gz make: Nothing to be done for 'test'. DHUNT/PDL-Graphics-PLplot-0.74.tar.gz /usr/bin/make test -- OK Running make install for DHUNT/PDL-Graphics-PLplot-0.74.tar.gz make: Nothing to be done for 'install'. DHUNT/PDL-Graphics-PLplot-0.74.tar.gz /usr/bin/make install -- OK
        See ? Everything went fine, including /usr/bin/make install ;-)

        So, I'm thinking that you, too, might not have the plplot library installed.
        If that's not the case, let me know how I can get apt-get to install the plplot library on Ubuntu and I'll investigate your problem further.

        Cheers,
        Rob