Hello Thomas (ngO177), I encountered a similar problem building PDL 2.083 and 2.084 in macOS Monterrey, to wit: getting PDL::Graphics::Simple to work, or even to pass its build tests. Rather than repeat the odyssey I went through here I suggest you read the write-up I did at perlmonks that documents the build debug process:
https://www.perlmonks.org/?node_id=11153860 I posted this as open-issue #450 at PDL meta-cpan, but alas, no one from PDL dev has, as yet, bothered to read it. In a nutshell, you need a graphics engine on your machine and if there isn't one, or PDL can't find it, the Alien process (since a graphics engine is defined in PDL-speak as an alien process) will find one appropriate to your OS on the net, download and build it for you. Alas, for macOS Monterrey, Alien built a crippled plotting engine. It failed to un-comment any of the three #ifdef terminal definitions that support graphics in macOS. Thus, no terminal def for macOS was compiled into gnuplot. The fix, for me, was to rtfm the build docs, initialize the environment to point to my preferred graphics engine (gnuplot, built by me with macports rather than Alien), and enable interactive build tests. To be fair to PDL developers, this is all documented in the PDL build instructions and 'man gnuplot', but most of us take the ease of building Perl modules for granted and don't bother to read them unless something goes wrong. Alien is a brilliant idea but at present its execution in PDL is flawed. It attempts to transparently obtain for you an appropriate graphics engine but fails to build it correctly. With a little hacking you can get around this, I did, but as always, your mileage will vary. I would very much like to hear from you after you have read the perlmonks post and evaluated my solution in a Linux context. My PDL in Monterrey is now working correctly, so I held off trying to build PDL in Ubuntu, but if nothing works for you I will give it a try. Regards, Will Schmidt (perlboy_emeritus) On Wed, Aug 30, 2023 at 5:22 AM <ng0...@gmail.com> wrote: > Hello, > > in order to take some first steps > cpan PDL::Graphics::Simple > pdl> use PDL::Graphics::Simple > pdl> imag (sin(rvals(200,200)+1)) > > on Debian 12 w/ experimental repos activated, all I try, see below, fails. > > Any ideas? > > Appreciate, Thomas > pdl > > sudo apt -t experimental install pdl > > sudo apt -t experimental install pgplot5 > > sudo apt -t experimental install libpgplot-perl > > sudo apt -t experimental install libpdl-graphics-gnuplot-perl > cpangraphics simple > > cpan PDL::Graphics::Simple > > ... > > Test Summary Report > > ------------------- > > t/simple.t (Wstat: 512 (exited 2) Tests: 24 Failed: 2) > > Failed tests: 1, 12 > > Non-zero exit status: 2 > > Parse errors: No plan found in TAP output > > Files=1, Tests=24, 2 wallclock secs ( 0.01 usr 0.00 sys + 0.26 cusr > 0.22 csys = 0.49 CPU) > > Result: FAIL > > Failed 1/1 test programs. 2/24 subtests failed. > > make: *** [Makefile:851: test_dynamic] Error 2 > > ETJ/PDL-Graphics-Simple-1.009.tar.gz > > make test -- NOT OK > > //hint// to see the cpan-testers results for installing this module, try: > > reports ETJ/PDL-Graphics-Simple-1.009.tar.gz > dh-make-perl > > https://wiki.debian.org/PerlFAQ > > sudo apt -t experimental install dh-make-perl > > dh-make-perl --build --cpan PDL::Graphics::Simple > > > ... > > Test Summary Report > > ------------------- > > t/simple.t (Wstat: 512 (exited 2) Tests: 24 Failed: 2) > > Failed tests: 1, 12 > > Non-zero exit status: 2 > > Parse errors: No plan found in TAP output > > Files=1, Tests=24, 1 wallclock secs ( 0.01 usr 0.00 sys + 0.29 cusr > 0.21 csys = 0.51 CPU) > > Result: FAIL > > Failed 1/1 test programs. 2/24 subtests failed. > > make[1]: *** [Makefile:854: test_dynamic] Error 2 > > make[1]: Leaving directory '/home/th6mas/PDL-Graphics-Simple-1.009' > > dh_auto_test: error: make -j1 test TEST_VERBOSE=1 returned exit code 2 > > make: *** [debian/rules:4: build] Error 255 > > make: Leaving directory '/home/th6mas/PDL-Graphics-Simple-1.009' > > Cannot create deb package: 'debian/rules build' failed. > > _______________________________________________ > pdl-devel mailing list > pdl-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/pdl-devel >
_______________________________________________ pdl-devel mailing list pdl-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pdl-devel