You can subscribe to this list here.
2015 |
Jan
|
Feb
(44) |
Mar
(75) |
Apr
(42) |
May
(50) |
Jun
(82) |
Jul
(17) |
Aug
(45) |
Sep
(32) |
Oct
(32) |
Nov
(41) |
Dec
(22) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2016 |
Jan
(9) |
Feb
(5) |
Mar
(6) |
Apr
(6) |
May
(34) |
Jun
(47) |
Jul
(10) |
Aug
(2) |
Sep
(6) |
Oct
(35) |
Nov
(6) |
Dec
|
2017 |
Jan
(7) |
Feb
(5) |
Mar
(3) |
Apr
(2) |
May
(12) |
Jun
(1) |
Jul
(3) |
Aug
(3) |
Sep
|
Oct
|
Nov
(5) |
Dec
|
2018 |
Jan
|
Feb
|
Mar
(16) |
Apr
(7) |
May
(10) |
Jun
(1) |
Jul
|
Aug
(2) |
Sep
|
Oct
(1) |
Nov
(2) |
Dec
(1) |
2019 |
Jan
|
Feb
|
Mar
|
Apr
(32) |
May
(11) |
Jun
(5) |
Jul
(7) |
Aug
|
Sep
|
Oct
|
Nov
(2) |
Dec
(2) |
2021 |
Jan
|
Feb
(25) |
Mar
(38) |
Apr
(11) |
May
(3) |
Jun
(6) |
Jul
(2) |
Aug
(22) |
Sep
(12) |
Oct
(18) |
Nov
(6) |
Dec
(1) |
2022 |
Jan
(5) |
Feb
(47) |
Mar
(6) |
Apr
(9) |
May
(7) |
Jun
(2) |
Jul
(5) |
Aug
(15) |
Sep
|
Oct
(1) |
Nov
|
Dec
|
2023 |
Jan
|
Feb
(4) |
Mar
(6) |
Apr
(3) |
May
(2) |
Jun
(2) |
Jul
(3) |
Aug
(6) |
Sep
(17) |
Oct
(5) |
Nov
|
Dec
|
2024 |
Jan
(8) |
Feb
(4) |
Mar
(1) |
Apr
(8) |
May
(13) |
Jun
(10) |
Jul
|
Aug
|
Sep
(1) |
Oct
(16) |
Nov
(9) |
Dec
(18) |
2025 |
Jan
(47) |
Feb
(5) |
Mar
|
Apr
|
May
|
Jun
|
Jul
(8) |
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: Zakariyya M. <zak...@gm...> - 2023-10-03 03:58:33
|
On 2023-10-02 at 09:21:59 +0200, ng...@gm... wrote: > Hello, > > the task is to obtain a spectrum of an infrared image, see attached, via > Fourier Transform; several steps are required as outlined in the PDL Book. > I guess, if these two commands from PDL::IO::Image worked, > > rimage('cat.jpeg'); # JPEG_GREYSCALE > ... > wimage('catmod.jpeg'); > > the intermediate ones could be used from PDL::Graphics::Simple Hello Thomas, I see. The PDL Book copy that I just grepped does not use `PDL::IO::Image`. Where are you getting that? What the PDL Book I have uses is the built in `PDL::IO::Pic` which works with the NetPBM package. That should work for your image. The functions that you want are either `rim` or `rpic`. Cheers, - Zaki Mughal > > Thanks, Thomas > > On Sun, Oct 1, 2023 at 11:41 PM Zakariyya Mughal <zak...@gm...> > wrote: > > > On 2023-09-18 at 14:37:54 +0200, ng...@gm... wrote: > > > Hello, > > > > > > wrt to the error below, this issue > > > https://sourceforge.net/p/freeimage/discussion/36111/ is filed but > > unlikely > > > to get an answer. > > > > > > Question: does anyone have a working PDL environment with "use > > > PDL::IO::Image" working - and would not mind sharing the steps (if not > > too > > > many) to set it up? > > > > Hello, > > > > Unfortunately, nobody has yet fixed Alien::FreeImage (this problem is > > known and why PDL does not test against PDL::IO::Image at this time) and > > I have not contacted the author. I might be able to help, but not > > immediately. > > > > Which functionality of PDL::IO::Image do you need? It may be built-in to > > PDL already. > > > > Cheers, > > - Zaki Mughal > > > > > > > > Thanks a lot, Thomas > > > > > > ---------- Forwarded message --------- > > > From: <ng...@gm...> > > > Date: Thu, Sep 14, 2023 at 5:05 PM > > > Subject: Re: [Pdl-devel] Debian 12 "-t experimental" install of PDL > > > To: Ed . <ej...@ho...> > > > Cc: pdl...@li... <pdl...@li...> > > > > > > > > > Dear All / Ed, > > > > > > as mentioned before, it is possible to get a smooth installation of PDL > > > using (Perl 5.38, PDL 2.084) under Arch - in fact EndeavourOS - by the > > > commands below. perlbrew is not used as I have not seen a clean install > > > e.g. under Ubuntu which is still on perl 5.36: > > > > > > yay cpanminus > > > > > > sudo cpanm Term::ReadKey > > > > > > sudo cpanm Term::ReadLine::Gnu > > > > > > sudo cpanm Alien::Gnuplot # first > > > > > > sudo cpanm PDL::Graphics::Gnuplot # second > > > > > > sudo cpanm PDL::Graphics::Simple # third, pops up > > > > > > However, *Alien::FreeImage* throws an error in a next step. Would any > > > developer mind to fix it: > > > > > > sudo cpanm Alien::FreeImage # first > > > (used by: sudo cpanm PDL::IO::Image # second) > > > ... > > > Source/OpenEXR/Imath/ImathVec.h:2150:33: error: ISO C++17 does not allow > > > dynamic exception specifications > > > 2150 | Vec4<T>::normalizedExc () const throw (IEX_NAMESPACE::MathExc) > > > | ^~~~~ > > > In file included from Source/FreeImage/../OpenEXR/IlmImf/ImfXdr.h:108, > > > from > > > Source/FreeImage/../OpenEXR/IlmImf/ImfGenericOutputFile.h:40, > > > from > > Source/FreeImage/../OpenEXR/IlmImf/ImfOutputFile.h:49: > > > Source/OpenEXR/Half/half.h: In constructor ‘half::half(float)’: > > > Source/OpenEXR/Half/half.h:462:22: warning: ISO C++17 does not allow > > > ‘register’ storage class specifier [-Wregister] > > > 462 | register int e = (x.i >> 23) & 0x000001ff; > > > | ^ > > > Source/OpenEXR/Half/half.h:473:26: warning: ISO C++17 does not allow > > > ‘register’ storage class specifier [-Wregister] > > > 473 | register int m = x.i & 0x007fffff; > > > | ^ > > > make: *** [Makefile.gnu:64: Source/FreeImage/PluginEXR.o] Error 1 > > > ###ERROR### make failed [512] at inc/My/Builder/Unix.pm line 33. > > > -> FAIL Installing Alien::FreeImage failed. See > > > /root/.cpanm/work/1694702761.20233/build.log for details. Retry with > > > --force to force install it. > > > > > > Thanks a lot, Thomas > > > > > > On Sat, Sep 2, 2023 at 12:47 AM Ed . <ej...@ho...> wrote: > > > > > > > Hi Thomas, > > > > > > > > > > > > > > > > You will want to install Term::ReadKey and probably > > Term::ReadLine::Gnu to > > > > have a nicer, more interactive perldl. I don’t use pdl2 myself, but it > > did > > > > tell you what it needs to run if you want to use it. > > > > > > > > > > > > > > > > Also, Alien::Gnuplot only installs (or checks for) actual gnuplot. If > > you > > > > want the PDL interface to it, which PDL::Graphics::Simple wraps > > around, you > > > > need to install PDL::Graphics::Gnuplot. This would solve the thing > > > > PDL::Graphics::Simple was telling you: “Sorry, all known plotting > > engines > > > > failed. Install one and try again.” Please read > > > > > > https://metacpan.org/pod/PDL::Graphics::Simple#SUPPORTED-GRAPHICS-ENGINES > > > > > > > > > > > > > > > > Best regards, > > > > > > > > Ed > > > > > > > > > > > > > > > > *From: *ng...@gm... > > > > *Sent: *01 September 2023 18:10 > > > > *To: *Ed . <ej...@ho...> > > > > *Cc: *Ingo Schmid <in...@gm...>; pdl...@li... > > > > *Subject: *Re: [Pdl-devel] Debian 12 "-t experimental" install of PDL > > > > > > > > > > > > > > > > Hello Ed, > > > > > > > > > > > > > > > > as I understand, there a different options to get First Steps from the > > PDL > > > > book to work. I have adopted the approach using perlbrew and cpanm as > > > > they seem the most stable. > > > > > > > > > > > > > > > > Please find below the sequence of commands issued and the final error > > > > messages under Ubuntu. I used the same approach on three different > > Linux > > > > distributions (Debian, Ubuntu, Arch) with the same result. > > > > > > > > > > > > > > > > Is there any chance to reproduce the problem and look into it? > > > > > > > > > > > > > > > > Thanks a lot, Thomas > > > > > > > > > > > > > > > > # idea: install PDL piggyback from CPAN under perlbrew > > > > > > > > > > > > > > > > perlbrew init # change prompt in .profile, .bashrc > > > > > > > > perlbrew install perl-5.38.0 > > > > > > > > perlbrew install-cpanm > > > > > > > > perlbrew install-patchperl > > > > > > > > perlbrew switch perl-5.38.0 > > > > > > > > > > > > > > > > cpanm Alien::Gnuplot # first ...OK > > > > > > > > cpanm PDL::Graphics::Simple # second ...OK > > > > > > > > > > > > > > > > Ubuntu: ~ $ pdl2 > > > > > > > > pdl2: Devel::REPL version 1.003011 not found, running > > > > '/home/th6mas/perl5/perlbrew/perls/perl-5.38.0/bin/perldl' instead... > > > > > > > > perlDL shell v1.357 > > > > > > > > PDL comes with ABSOLUTELY NO WARRANTY. For details, see the file > > > > > > > > 'COPYING' in the PDL distribution. This is free software and you > > > > > > > > are welcome to redistribute it under certain conditions, see > > > > > > > > the same file for details. > > > > > > > > ReadLines, NiceSlice, MultiLines enabled > > > > > > > > Reading PDL/default.perldlrc... > > > > > > > > WARNING: Error loading PDL: 'Can't locate Term/ReadKey.pm in @INC (you > > may > > > > need to install the Term::ReadKey module) (@INC entries checked: > > > > > > /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/lib/site_perl/5.38.0/x86_64-linux > > > > /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/lib/site_perl/5.38.0 > > > > /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/lib/5.38.0/x86_64-linux > > > > /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/lib/5.38.0) at > > > > > > /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/lib/site_perl/5.38.0/x86_64-linux/PDL/Doc/Perldl.pm > > > > line 52. > > > > > > > > BEGIN failed--compilation aborted at > > > > > > /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/lib/site_perl/5.38.0/x86_64-linux/PDL/Doc/Perldl.pm > > > > line 52. > > > > > > > > Compilation failed in require at > > > > > > /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/lib/site_perl/5.38.0/x86_64-linux/PDL/default.perldlrc > > > > line 37. > > > > > > > > BEGIN failed--compilation aborted at > > > > > > /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/lib/site_perl/5.38.0/x86_64-linux/PDL/default.perldlrc > > > > line 37. > > > > > > > > Compilation failed in require at (eval 14) line 1. > > > > > > > > ' - trying blib. > > > > > > > > WARNING: PDL startup not found only plain perl available > > > > > > > > > > > > > > > > Note: AutoLoader not enabled ('use PDL::AutoLoader' recommended) > > > > > > > > > > > > > > > > perl> use PDL::Graphics::Simple > > > > > > > > Can't locate PDL/Graphics/PGPLOT/Window.pm in @INC (you may need to > > > > install the PDL::Graphics::PGPLOT::Window module) (@INC entries > > checked: > > > > > > /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/lib/site_perl/5.38.0/x86_64-linux > > > > /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/lib/site_perl/5.38.0 > > > > /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/lib/5.38.0/x86_64-linux > > > > /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/lib/5.38.0) at > > > > > > /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/lib/site_perl/5.38.0/PDL/Graphics/Simple/PGPLOT.pm > > > > line 28, <STDIN> line 1. > > > > > > > > > > > > > > > > perl> imag (sin(rvals(200,200)+1)) > > > > > > > > Sorry, all known plotting engines failed. Install one and try again. > > > > > > > > at > > > > > > /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/lib/site_perl/5.38.0/PDL/Graphics/Simple.pm > > > > line 434, <STDIN> line 2. > > > > > > > > PDL::Graphics::Simple::new("PDL::Graphics::Simple") called at > > > > > > /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/lib/site_perl/5.38.0/PDL/Graphics/Simple.pm > > > > line 389 > > > > > > > > PDL::Graphics::Simple::pgswin() called at > > > > > > /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/lib/site_perl/5.38.0/PDL/Graphics/Simple.pm > > > > line 1262 > > > > > > > > PDL::Graphics::Simple::_global_or_new() called at > > > > > > /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/lib/site_perl/5.38.0/PDL/Graphics/Simple.pm > > > > line 1151 > > > > > > > > PDL::Graphics::Simple::imag(PDL=SCALAR(0x563dd1c9aca0)) called at (eval > > > > 50) line 1 > > > > > > > > eval 'imag (sin(rvals(200,200)+1)) > > > > > > > > ' called at (eval 36) line 6 > > > > > > > > main::eval_and_report("imag (sin(rvals(200,200)+1))\x{a}") called at > > > > /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/bin/perldl line 618 > > > > > > > > main::process_input() called at > > > > /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/bin/perldl line 638 > > > > > > > > eval {...} called at > > > > /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/bin/perldl line 638 > > > > > > > > require /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/bin/perldl > > called at > > > > /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/bin/pdl2 line 27 > > > > > > > > main::BEGIN() called at > > > > /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/bin/pdl2 line 33 > > > > > > > > eval {...} called at > > > > /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/bin/pdl2 line 33 > > > > > > > > > > > > > > > > perl> quit > > > > > > > > > > > > > > > > > > > > > > > > On Fri, Sep 1, 2023 at 4:56 PM Ed . <ej...@ho...> wrote: > > > > > > > > Please just try with the latest (Perl 5.38, PDL 2.084), and report any > > > > problems? > > > > > > > > > > > > > > > > Best regards, > > > > > > > > Ed > > > > > > > > > > > > > > > > *From: *ng...@gm... > > > > *Sent: *31 August 2023 19:09 > > > > *To: *Ingo Schmid <in...@gm...> > > > > *Cc: *pdl...@li... > > > > *Subject: *Re: [Pdl-devel] Debian 12 "-t experimental" install of PDL > > > > > > > > > > > > > > > > Hello Ingo, > > > > > > > > > > > > > > > > much appreciate! Just to ask which perl version is most likely to run > > the > > > > commands from the First Step PDL Book? > > > > > > > > > > > > > > > > @anyone: which perl version is known to work for that purpose? > > > > > > > > > > > > > > > > Thanks a lot, Thomas > > > > > > > > > > > > > > > > On Thu, Aug 31, 2023 at 11:00 AM Ingo Schmid <in...@gm...> wrote: > > > > > > > > Hi, > > > > > > > > I have not really read through the whole thread, I apologise if this > > does > > > > not apply to your problem then. > > > > > > > > I have moved most of the PDL stuff to perlbrew which allows a fairly > > > > system independent installation, it's berrybrew on windows, I don't own > > > > Macs. On linux, your distribution most probably provides it, I used > > apt to > > > > install the software itself. The best part about is, that system (perl) > > > > upgrades don't break your PDL installation. This allowed me to > > consistently > > > > run things cross platform with no troubles for a long time. > > > > > > > > Run > > > > > > > > > perlbrew install <perl version> > > > > > perlbrew install-cpanm > > > > > perlbrew install-patchperl > > > > > > > > It takes a fair amount of installation time and I guess disk space, > > > > defaults to your home. > > > > > > > > Please consult the perlbrew docs for the exact process, this is I think > > > > the most useful info: https://perlbrew.pl/Perlbrew-and-Friends.html. > > Once > > > > you are set, use > > > > > > > > > perlbrew switch ... > > > > > > > > > cpanm PDL::Graphics::Simple > > > > > > > > I guess you may need to install a few dependencies that are either > > > > ambiguous or simply missing using cpanm from the same shell. I don't > > > > remember if P:G:S comes with a default backend or if you need to, for > > > > example, install gnuplot. > > > > > > > > I hope this helps. > > > > > > > > Ingo > > > > > > > > On 8/31/23 10:12, ng...@gm... wrote: > > > > > > > > Hello, > > > > > > > > > > > > > > > > would anyone with a working version mind to post some hints on how to > > > > achieve: > > > > > > > > > > > > > > > > cpan PDL::Graphics::Simple > > > > pdl> use PDL::Graphics::Simple > > > > pdl> imag (sin(rvals(200,200)+1)) > > > > > > > > > > > > > > > > on no matter on which platform but with the least number of steps? > > > > > > > > > > > > > > > > Thanks a lot, Thomas > > > > > > > > > > > > > > > > On Wed, Aug 30, 2023 at 4:51 PM William Schmidt < > > > > t.w...@gm...> wrote: > > > > > > > > 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 <ng...@gm...> 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* > > > > cpan *graphics 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...@li... > > > > https://lists.sourceforge.net/lists/listinfo/pdl-devel > > > > > > > > > > > > > > > > _______________________________________________ > > > > > > > > pdl-devel mailing list > > > > > > > > pdl...@li... > > > > > > > > https://lists.sourceforge.net/lists/listinfo/pdl-devel > > > > > > > > _______________________________________________ > > > > pdl-devel mailing list > > > > pdl...@li... > > > > https://lists.sourceforge.net/lists/listinfo/pdl-devel > > > > > > > > > > > > > > > > > > > > > > > > > > > _______________________________________________ > > > pdl-devel mailing list > > > pdl...@li... > > > https://lists.sourceforge.net/lists/listinfo/pdl-devel > > > > |
From: <ng...@gm...> - 2023-10-02 07:22:21
|
Hello, the task is to obtain a spectrum of an infrared image, see attached, via Fourier Transform; several steps are required as outlined in the PDL Book. I guess, if these two commands from PDL::IO::Image worked, rimage('cat.jpeg'); # JPEG_GREYSCALE ... wimage('catmod.jpeg'); the intermediate ones could be used from PDL::Graphics::Simple Thanks, Thomas On Sun, Oct 1, 2023 at 11:41 PM Zakariyya Mughal <zak...@gm...> wrote: > On 2023-09-18 at 14:37:54 +0200, ng...@gm... wrote: > > Hello, > > > > wrt to the error below, this issue > > https://sourceforge.net/p/freeimage/discussion/36111/ is filed but > unlikely > > to get an answer. > > > > Question: does anyone have a working PDL environment with "use > > PDL::IO::Image" working - and would not mind sharing the steps (if not > too > > many) to set it up? > > Hello, > > Unfortunately, nobody has yet fixed Alien::FreeImage (this problem is > known and why PDL does not test against PDL::IO::Image at this time) and > I have not contacted the author. I might be able to help, but not > immediately. > > Which functionality of PDL::IO::Image do you need? It may be built-in to > PDL already. > > Cheers, > - Zaki Mughal > > > > > Thanks a lot, Thomas > > > > ---------- Forwarded message --------- > > From: <ng...@gm...> > > Date: Thu, Sep 14, 2023 at 5:05 PM > > Subject: Re: [Pdl-devel] Debian 12 "-t experimental" install of PDL > > To: Ed . <ej...@ho...> > > Cc: pdl...@li... <pdl...@li...> > > > > > > Dear All / Ed, > > > > as mentioned before, it is possible to get a smooth installation of PDL > > using (Perl 5.38, PDL 2.084) under Arch - in fact EndeavourOS - by the > > commands below. perlbrew is not used as I have not seen a clean install > > e.g. under Ubuntu which is still on perl 5.36: > > > > yay cpanminus > > > > sudo cpanm Term::ReadKey > > > > sudo cpanm Term::ReadLine::Gnu > > > > sudo cpanm Alien::Gnuplot # first > > > > sudo cpanm PDL::Graphics::Gnuplot # second > > > > sudo cpanm PDL::Graphics::Simple # third, pops up > > > > However, *Alien::FreeImage* throws an error in a next step. Would any > > developer mind to fix it: > > > > sudo cpanm Alien::FreeImage # first > > (used by: sudo cpanm PDL::IO::Image # second) > > ... > > Source/OpenEXR/Imath/ImathVec.h:2150:33: error: ISO C++17 does not allow > > dynamic exception specifications > > 2150 | Vec4<T>::normalizedExc () const throw (IEX_NAMESPACE::MathExc) > > | ^~~~~ > > In file included from Source/FreeImage/../OpenEXR/IlmImf/ImfXdr.h:108, > > from > > Source/FreeImage/../OpenEXR/IlmImf/ImfGenericOutputFile.h:40, > > from > Source/FreeImage/../OpenEXR/IlmImf/ImfOutputFile.h:49: > > Source/OpenEXR/Half/half.h: In constructor ‘half::half(float)’: > > Source/OpenEXR/Half/half.h:462:22: warning: ISO C++17 does not allow > > ‘register’ storage class specifier [-Wregister] > > 462 | register int e = (x.i >> 23) & 0x000001ff; > > | ^ > > Source/OpenEXR/Half/half.h:473:26: warning: ISO C++17 does not allow > > ‘register’ storage class specifier [-Wregister] > > 473 | register int m = x.i & 0x007fffff; > > | ^ > > make: *** [Makefile.gnu:64: Source/FreeImage/PluginEXR.o] Error 1 > > ###ERROR### make failed [512] at inc/My/Builder/Unix.pm line 33. > > -> FAIL Installing Alien::FreeImage failed. See > > /root/.cpanm/work/1694702761.20233/build.log for details. Retry with > > --force to force install it. > > > > Thanks a lot, Thomas > > > > On Sat, Sep 2, 2023 at 12:47 AM Ed . <ej...@ho...> wrote: > > > > > Hi Thomas, > > > > > > > > > > > > You will want to install Term::ReadKey and probably > Term::ReadLine::Gnu to > > > have a nicer, more interactive perldl. I don’t use pdl2 myself, but it > did > > > tell you what it needs to run if you want to use it. > > > > > > > > > > > > Also, Alien::Gnuplot only installs (or checks for) actual gnuplot. If > you > > > want the PDL interface to it, which PDL::Graphics::Simple wraps > around, you > > > need to install PDL::Graphics::Gnuplot. This would solve the thing > > > PDL::Graphics::Simple was telling you: “Sorry, all known plotting > engines > > > failed. Install one and try again.” Please read > > > > https://metacpan.org/pod/PDL::Graphics::Simple#SUPPORTED-GRAPHICS-ENGINES > > > > > > > > > > > > Best regards, > > > > > > Ed > > > > > > > > > > > > *From: *ng...@gm... > > > *Sent: *01 September 2023 18:10 > > > *To: *Ed . <ej...@ho...> > > > *Cc: *Ingo Schmid <in...@gm...>; pdl...@li... > > > *Subject: *Re: [Pdl-devel] Debian 12 "-t experimental" install of PDL > > > > > > > > > > > > Hello Ed, > > > > > > > > > > > > as I understand, there a different options to get First Steps from the > PDL > > > book to work. I have adopted the approach using perlbrew and cpanm as > > > they seem the most stable. > > > > > > > > > > > > Please find below the sequence of commands issued and the final error > > > messages under Ubuntu. I used the same approach on three different > Linux > > > distributions (Debian, Ubuntu, Arch) with the same result. > > > > > > > > > > > > Is there any chance to reproduce the problem and look into it? > > > > > > > > > > > > Thanks a lot, Thomas > > > > > > > > > > > > # idea: install PDL piggyback from CPAN under perlbrew > > > > > > > > > > > > perlbrew init # change prompt in .profile, .bashrc > > > > > > perlbrew install perl-5.38.0 > > > > > > perlbrew install-cpanm > > > > > > perlbrew install-patchperl > > > > > > perlbrew switch perl-5.38.0 > > > > > > > > > > > > cpanm Alien::Gnuplot # first ...OK > > > > > > cpanm PDL::Graphics::Simple # second ...OK > > > > > > > > > > > > Ubuntu: ~ $ pdl2 > > > > > > pdl2: Devel::REPL version 1.003011 not found, running > > > '/home/th6mas/perl5/perlbrew/perls/perl-5.38.0/bin/perldl' instead... > > > > > > perlDL shell v1.357 > > > > > > PDL comes with ABSOLUTELY NO WARRANTY. For details, see the file > > > > > > 'COPYING' in the PDL distribution. This is free software and you > > > > > > are welcome to redistribute it under certain conditions, see > > > > > > the same file for details. > > > > > > ReadLines, NiceSlice, MultiLines enabled > > > > > > Reading PDL/default.perldlrc... > > > > > > WARNING: Error loading PDL: 'Can't locate Term/ReadKey.pm in @INC (you > may > > > need to install the Term::ReadKey module) (@INC entries checked: > > > > /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/lib/site_perl/5.38.0/x86_64-linux > > > /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/lib/site_perl/5.38.0 > > > /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/lib/5.38.0/x86_64-linux > > > /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/lib/5.38.0) at > > > > /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/lib/site_perl/5.38.0/x86_64-linux/PDL/Doc/Perldl.pm > > > line 52. > > > > > > BEGIN failed--compilation aborted at > > > > /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/lib/site_perl/5.38.0/x86_64-linux/PDL/Doc/Perldl.pm > > > line 52. > > > > > > Compilation failed in require at > > > > /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/lib/site_perl/5.38.0/x86_64-linux/PDL/default.perldlrc > > > line 37. > > > > > > BEGIN failed--compilation aborted at > > > > /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/lib/site_perl/5.38.0/x86_64-linux/PDL/default.perldlrc > > > line 37. > > > > > > Compilation failed in require at (eval 14) line 1. > > > > > > ' - trying blib. > > > > > > WARNING: PDL startup not found only plain perl available > > > > > > > > > > > > Note: AutoLoader not enabled ('use PDL::AutoLoader' recommended) > > > > > > > > > > > > perl> use PDL::Graphics::Simple > > > > > > Can't locate PDL/Graphics/PGPLOT/Window.pm in @INC (you may need to > > > install the PDL::Graphics::PGPLOT::Window module) (@INC entries > checked: > > > > /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/lib/site_perl/5.38.0/x86_64-linux > > > /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/lib/site_perl/5.38.0 > > > /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/lib/5.38.0/x86_64-linux > > > /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/lib/5.38.0) at > > > > /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/lib/site_perl/5.38.0/PDL/Graphics/Simple/PGPLOT.pm > > > line 28, <STDIN> line 1. > > > > > > > > > > > > perl> imag (sin(rvals(200,200)+1)) > > > > > > Sorry, all known plotting engines failed. Install one and try again. > > > > > > at > > > > /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/lib/site_perl/5.38.0/PDL/Graphics/Simple.pm > > > line 434, <STDIN> line 2. > > > > > > PDL::Graphics::Simple::new("PDL::Graphics::Simple") called at > > > > /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/lib/site_perl/5.38.0/PDL/Graphics/Simple.pm > > > line 389 > > > > > > PDL::Graphics::Simple::pgswin() called at > > > > /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/lib/site_perl/5.38.0/PDL/Graphics/Simple.pm > > > line 1262 > > > > > > PDL::Graphics::Simple::_global_or_new() called at > > > > /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/lib/site_perl/5.38.0/PDL/Graphics/Simple.pm > > > line 1151 > > > > > > PDL::Graphics::Simple::imag(PDL=SCALAR(0x563dd1c9aca0)) called at (eval > > > 50) line 1 > > > > > > eval 'imag (sin(rvals(200,200)+1)) > > > > > > ' called at (eval 36) line 6 > > > > > > main::eval_and_report("imag (sin(rvals(200,200)+1))\x{a}") called at > > > /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/bin/perldl line 618 > > > > > > main::process_input() called at > > > /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/bin/perldl line 638 > > > > > > eval {...} called at > > > /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/bin/perldl line 638 > > > > > > require /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/bin/perldl > called at > > > /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/bin/pdl2 line 27 > > > > > > main::BEGIN() called at > > > /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/bin/pdl2 line 33 > > > > > > eval {...} called at > > > /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/bin/pdl2 line 33 > > > > > > > > > > > > perl> quit > > > > > > > > > > > > > > > > > > On Fri, Sep 1, 2023 at 4:56 PM Ed . <ej...@ho...> wrote: > > > > > > Please just try with the latest (Perl 5.38, PDL 2.084), and report any > > > problems? > > > > > > > > > > > > Best regards, > > > > > > Ed > > > > > > > > > > > > *From: *ng...@gm... > > > *Sent: *31 August 2023 19:09 > > > *To: *Ingo Schmid <in...@gm...> > > > *Cc: *pdl...@li... > > > *Subject: *Re: [Pdl-devel] Debian 12 "-t experimental" install of PDL > > > > > > > > > > > > Hello Ingo, > > > > > > > > > > > > much appreciate! Just to ask which perl version is most likely to run > the > > > commands from the First Step PDL Book? > > > > > > > > > > > > @anyone: which perl version is known to work for that purpose? > > > > > > > > > > > > Thanks a lot, Thomas > > > > > > > > > > > > On Thu, Aug 31, 2023 at 11:00 AM Ingo Schmid <in...@gm...> wrote: > > > > > > Hi, > > > > > > I have not really read through the whole thread, I apologise if this > does > > > not apply to your problem then. > > > > > > I have moved most of the PDL stuff to perlbrew which allows a fairly > > > system independent installation, it's berrybrew on windows, I don't own > > > Macs. On linux, your distribution most probably provides it, I used > apt to > > > install the software itself. The best part about is, that system (perl) > > > upgrades don't break your PDL installation. This allowed me to > consistently > > > run things cross platform with no troubles for a long time. > > > > > > Run > > > > > > > perlbrew install <perl version> > > > > perlbrew install-cpanm > > > > perlbrew install-patchperl > > > > > > It takes a fair amount of installation time and I guess disk space, > > > defaults to your home. > > > > > > Please consult the perlbrew docs for the exact process, this is I think > > > the most useful info: https://perlbrew.pl/Perlbrew-and-Friends.html. > Once > > > you are set, use > > > > > > > perlbrew switch ... > > > > > > > cpanm PDL::Graphics::Simple > > > > > > I guess you may need to install a few dependencies that are either > > > ambiguous or simply missing using cpanm from the same shell. I don't > > > remember if P:G:S comes with a default backend or if you need to, for > > > example, install gnuplot. > > > > > > I hope this helps. > > > > > > Ingo > > > > > > On 8/31/23 10:12, ng...@gm... wrote: > > > > > > Hello, > > > > > > > > > > > > would anyone with a working version mind to post some hints on how to > > > achieve: > > > > > > > > > > > > cpan PDL::Graphics::Simple > > > pdl> use PDL::Graphics::Simple > > > pdl> imag (sin(rvals(200,200)+1)) > > > > > > > > > > > > on no matter on which platform but with the least number of steps? > > > > > > > > > > > > Thanks a lot, Thomas > > > > > > > > > > > > On Wed, Aug 30, 2023 at 4:51 PM William Schmidt < > > > t.w...@gm...> wrote: > > > > > > 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 <ng...@gm...> 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* > > > cpan *graphics 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...@li... > > > https://lists.sourceforge.net/lists/listinfo/pdl-devel > > > > > > > > > > > > _______________________________________________ > > > > > > pdl-devel mailing list > > > > > > pdl...@li... > > > > > > https://lists.sourceforge.net/lists/listinfo/pdl-devel > > > > > > _______________________________________________ > > > pdl-devel mailing list > > > pdl...@li... > > > https://lists.sourceforge.net/lists/listinfo/pdl-devel > > > > > > > > > > > > > > > > > > > _______________________________________________ > > pdl-devel mailing list > > pdl...@li... > > https://lists.sourceforge.net/lists/listinfo/pdl-devel > > |
From: Zakariyya M. <zak...@gm...> - 2023-10-01 21:42:03
|
On 2023-09-18 at 14:37:54 +0200, ng...@gm... wrote: > Hello, > > wrt to the error below, this issue > https://sourceforge.net/p/freeimage/discussion/36111/ is filed but unlikely > to get an answer. > > Question: does anyone have a working PDL environment with "use > PDL::IO::Image" working - and would not mind sharing the steps (if not too > many) to set it up? Hello, Unfortunately, nobody has yet fixed Alien::FreeImage (this problem is known and why PDL does not test against PDL::IO::Image at this time) and I have not contacted the author. I might be able to help, but not immediately. Which functionality of PDL::IO::Image do you need? It may be built-in to PDL already. Cheers, - Zaki Mughal > > Thanks a lot, Thomas > > ---------- Forwarded message --------- > From: <ng...@gm...> > Date: Thu, Sep 14, 2023 at 5:05 PM > Subject: Re: [Pdl-devel] Debian 12 "-t experimental" install of PDL > To: Ed . <ej...@ho...> > Cc: pdl...@li... <pdl...@li...> > > > Dear All / Ed, > > as mentioned before, it is possible to get a smooth installation of PDL > using (Perl 5.38, PDL 2.084) under Arch - in fact EndeavourOS - by the > commands below. perlbrew is not used as I have not seen a clean install > e.g. under Ubuntu which is still on perl 5.36: > > yay cpanminus > > sudo cpanm Term::ReadKey > > sudo cpanm Term::ReadLine::Gnu > > sudo cpanm Alien::Gnuplot # first > > sudo cpanm PDL::Graphics::Gnuplot # second > > sudo cpanm PDL::Graphics::Simple # third, pops up > > However, *Alien::FreeImage* throws an error in a next step. Would any > developer mind to fix it: > > sudo cpanm Alien::FreeImage # first > (used by: sudo cpanm PDL::IO::Image # second) > ... > Source/OpenEXR/Imath/ImathVec.h:2150:33: error: ISO C++17 does not allow > dynamic exception specifications > 2150 | Vec4<T>::normalizedExc () const throw (IEX_NAMESPACE::MathExc) > | ^~~~~ > In file included from Source/FreeImage/../OpenEXR/IlmImf/ImfXdr.h:108, > from > Source/FreeImage/../OpenEXR/IlmImf/ImfGenericOutputFile.h:40, > from Source/FreeImage/../OpenEXR/IlmImf/ImfOutputFile.h:49: > Source/OpenEXR/Half/half.h: In constructor ‘half::half(float)’: > Source/OpenEXR/Half/half.h:462:22: warning: ISO C++17 does not allow > ‘register’ storage class specifier [-Wregister] > 462 | register int e = (x.i >> 23) & 0x000001ff; > | ^ > Source/OpenEXR/Half/half.h:473:26: warning: ISO C++17 does not allow > ‘register’ storage class specifier [-Wregister] > 473 | register int m = x.i & 0x007fffff; > | ^ > make: *** [Makefile.gnu:64: Source/FreeImage/PluginEXR.o] Error 1 > ###ERROR### make failed [512] at inc/My/Builder/Unix.pm line 33. > -> FAIL Installing Alien::FreeImage failed. See > /root/.cpanm/work/1694702761.20233/build.log for details. Retry with > --force to force install it. > > Thanks a lot, Thomas > > On Sat, Sep 2, 2023 at 12:47 AM Ed . <ej...@ho...> wrote: > > > Hi Thomas, > > > > > > > > You will want to install Term::ReadKey and probably Term::ReadLine::Gnu to > > have a nicer, more interactive perldl. I don’t use pdl2 myself, but it did > > tell you what it needs to run if you want to use it. > > > > > > > > Also, Alien::Gnuplot only installs (or checks for) actual gnuplot. If you > > want the PDL interface to it, which PDL::Graphics::Simple wraps around, you > > need to install PDL::Graphics::Gnuplot. This would solve the thing > > PDL::Graphics::Simple was telling you: “Sorry, all known plotting engines > > failed. Install one and try again.” Please read > > https://metacpan.org/pod/PDL::Graphics::Simple#SUPPORTED-GRAPHICS-ENGINES > > > > > > > > Best regards, > > > > Ed > > > > > > > > *From: *ng...@gm... > > *Sent: *01 September 2023 18:10 > > *To: *Ed . <ej...@ho...> > > *Cc: *Ingo Schmid <in...@gm...>; pdl...@li... > > *Subject: *Re: [Pdl-devel] Debian 12 "-t experimental" install of PDL > > > > > > > > Hello Ed, > > > > > > > > as I understand, there a different options to get First Steps from the PDL > > book to work. I have adopted the approach using perlbrew and cpanm as > > they seem the most stable. > > > > > > > > Please find below the sequence of commands issued and the final error > > messages under Ubuntu. I used the same approach on three different Linux > > distributions (Debian, Ubuntu, Arch) with the same result. > > > > > > > > Is there any chance to reproduce the problem and look into it? > > > > > > > > Thanks a lot, Thomas > > > > > > > > # idea: install PDL piggyback from CPAN under perlbrew > > > > > > > > perlbrew init # change prompt in .profile, .bashrc > > > > perlbrew install perl-5.38.0 > > > > perlbrew install-cpanm > > > > perlbrew install-patchperl > > > > perlbrew switch perl-5.38.0 > > > > > > > > cpanm Alien::Gnuplot # first ...OK > > > > cpanm PDL::Graphics::Simple # second ...OK > > > > > > > > Ubuntu: ~ $ pdl2 > > > > pdl2: Devel::REPL version 1.003011 not found, running > > '/home/th6mas/perl5/perlbrew/perls/perl-5.38.0/bin/perldl' instead... > > > > perlDL shell v1.357 > > > > PDL comes with ABSOLUTELY NO WARRANTY. For details, see the file > > > > 'COPYING' in the PDL distribution. This is free software and you > > > > are welcome to redistribute it under certain conditions, see > > > > the same file for details. > > > > ReadLines, NiceSlice, MultiLines enabled > > > > Reading PDL/default.perldlrc... > > > > WARNING: Error loading PDL: 'Can't locate Term/ReadKey.pm in @INC (you may > > need to install the Term::ReadKey module) (@INC entries checked: > > /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/lib/site_perl/5.38.0/x86_64-linux > > /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/lib/site_perl/5.38.0 > > /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/lib/5.38.0/x86_64-linux > > /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/lib/5.38.0) at > > /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/lib/site_perl/5.38.0/x86_64-linux/PDL/Doc/Perldl.pm > > line 52. > > > > BEGIN failed--compilation aborted at > > /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/lib/site_perl/5.38.0/x86_64-linux/PDL/Doc/Perldl.pm > > line 52. > > > > Compilation failed in require at > > /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/lib/site_perl/5.38.0/x86_64-linux/PDL/default.perldlrc > > line 37. > > > > BEGIN failed--compilation aborted at > > /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/lib/site_perl/5.38.0/x86_64-linux/PDL/default.perldlrc > > line 37. > > > > Compilation failed in require at (eval 14) line 1. > > > > ' - trying blib. > > > > WARNING: PDL startup not found only plain perl available > > > > > > > > Note: AutoLoader not enabled ('use PDL::AutoLoader' recommended) > > > > > > > > perl> use PDL::Graphics::Simple > > > > Can't locate PDL/Graphics/PGPLOT/Window.pm in @INC (you may need to > > install the PDL::Graphics::PGPLOT::Window module) (@INC entries checked: > > /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/lib/site_perl/5.38.0/x86_64-linux > > /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/lib/site_perl/5.38.0 > > /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/lib/5.38.0/x86_64-linux > > /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/lib/5.38.0) at > > /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/lib/site_perl/5.38.0/PDL/Graphics/Simple/PGPLOT.pm > > line 28, <STDIN> line 1. > > > > > > > > perl> imag (sin(rvals(200,200)+1)) > > > > Sorry, all known plotting engines failed. Install one and try again. > > > > at > > /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/lib/site_perl/5.38.0/PDL/Graphics/Simple.pm > > line 434, <STDIN> line 2. > > > > PDL::Graphics::Simple::new("PDL::Graphics::Simple") called at > > /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/lib/site_perl/5.38.0/PDL/Graphics/Simple.pm > > line 389 > > > > PDL::Graphics::Simple::pgswin() called at > > /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/lib/site_perl/5.38.0/PDL/Graphics/Simple.pm > > line 1262 > > > > PDL::Graphics::Simple::_global_or_new() called at > > /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/lib/site_perl/5.38.0/PDL/Graphics/Simple.pm > > line 1151 > > > > PDL::Graphics::Simple::imag(PDL=SCALAR(0x563dd1c9aca0)) called at (eval > > 50) line 1 > > > > eval 'imag (sin(rvals(200,200)+1)) > > > > ' called at (eval 36) line 6 > > > > main::eval_and_report("imag (sin(rvals(200,200)+1))\x{a}") called at > > /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/bin/perldl line 618 > > > > main::process_input() called at > > /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/bin/perldl line 638 > > > > eval {...} called at > > /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/bin/perldl line 638 > > > > require /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/bin/perldl called at > > /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/bin/pdl2 line 27 > > > > main::BEGIN() called at > > /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/bin/pdl2 line 33 > > > > eval {...} called at > > /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/bin/pdl2 line 33 > > > > > > > > perl> quit > > > > > > > > > > > > On Fri, Sep 1, 2023 at 4:56 PM Ed . <ej...@ho...> wrote: > > > > Please just try with the latest (Perl 5.38, PDL 2.084), and report any > > problems? > > > > > > > > Best regards, > > > > Ed > > > > > > > > *From: *ng...@gm... > > *Sent: *31 August 2023 19:09 > > *To: *Ingo Schmid <in...@gm...> > > *Cc: *pdl...@li... > > *Subject: *Re: [Pdl-devel] Debian 12 "-t experimental" install of PDL > > > > > > > > Hello Ingo, > > > > > > > > much appreciate! Just to ask which perl version is most likely to run the > > commands from the First Step PDL Book? > > > > > > > > @anyone: which perl version is known to work for that purpose? > > > > > > > > Thanks a lot, Thomas > > > > > > > > On Thu, Aug 31, 2023 at 11:00 AM Ingo Schmid <in...@gm...> wrote: > > > > Hi, > > > > I have not really read through the whole thread, I apologise if this does > > not apply to your problem then. > > > > I have moved most of the PDL stuff to perlbrew which allows a fairly > > system independent installation, it's berrybrew on windows, I don't own > > Macs. On linux, your distribution most probably provides it, I used apt to > > install the software itself. The best part about is, that system (perl) > > upgrades don't break your PDL installation. This allowed me to consistently > > run things cross platform with no troubles for a long time. > > > > Run > > > > > perlbrew install <perl version> > > > perlbrew install-cpanm > > > perlbrew install-patchperl > > > > It takes a fair amount of installation time and I guess disk space, > > defaults to your home. > > > > Please consult the perlbrew docs for the exact process, this is I think > > the most useful info: https://perlbrew.pl/Perlbrew-and-Friends.html. Once > > you are set, use > > > > > perlbrew switch ... > > > > > cpanm PDL::Graphics::Simple > > > > I guess you may need to install a few dependencies that are either > > ambiguous or simply missing using cpanm from the same shell. I don't > > remember if P:G:S comes with a default backend or if you need to, for > > example, install gnuplot. > > > > I hope this helps. > > > > Ingo > > > > On 8/31/23 10:12, ng...@gm... wrote: > > > > Hello, > > > > > > > > would anyone with a working version mind to post some hints on how to > > achieve: > > > > > > > > cpan PDL::Graphics::Simple > > pdl> use PDL::Graphics::Simple > > pdl> imag (sin(rvals(200,200)+1)) > > > > > > > > on no matter on which platform but with the least number of steps? > > > > > > > > Thanks a lot, Thomas > > > > > > > > On Wed, Aug 30, 2023 at 4:51 PM William Schmidt < > > t.w...@gm...> wrote: > > > > 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 <ng...@gm...> 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* > > cpan *graphics 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...@li... > > https://lists.sourceforge.net/lists/listinfo/pdl-devel > > > > > > > > _______________________________________________ > > > > pdl-devel mailing list > > > > pdl...@li... > > > > https://lists.sourceforge.net/lists/listinfo/pdl-devel > > > > _______________________________________________ > > pdl-devel mailing list > > pdl...@li... > > https://lists.sourceforge.net/lists/listinfo/pdl-devel > > > > > > > > > > > _______________________________________________ > pdl-devel mailing list > pdl...@li... > https://lists.sourceforge.net/lists/listinfo/pdl-devel |
From: <ng...@gm...> - 2023-09-18 12:38:18
|
Hello, wrt to the error below, this issue https://sourceforge.net/p/freeimage/discussion/36111/ is filed but unlikely to get an answer. Question: does anyone have a working PDL environment with "use PDL::IO::Image" working - and would not mind sharing the steps (if not too many) to set it up? Thanks a lot, Thomas ---------- Forwarded message --------- From: <ng...@gm...> Date: Thu, Sep 14, 2023 at 5:05 PM Subject: Re: [Pdl-devel] Debian 12 "-t experimental" install of PDL To: Ed . <ej...@ho...> Cc: pdl...@li... <pdl...@li...> Dear All / Ed, as mentioned before, it is possible to get a smooth installation of PDL using (Perl 5.38, PDL 2.084) under Arch - in fact EndeavourOS - by the commands below. perlbrew is not used as I have not seen a clean install e.g. under Ubuntu which is still on perl 5.36: yay cpanminus sudo cpanm Term::ReadKey sudo cpanm Term::ReadLine::Gnu sudo cpanm Alien::Gnuplot # first sudo cpanm PDL::Graphics::Gnuplot # second sudo cpanm PDL::Graphics::Simple # third, pops up However, *Alien::FreeImage* throws an error in a next step. Would any developer mind to fix it: sudo cpanm Alien::FreeImage # first (used by: sudo cpanm PDL::IO::Image # second) ... Source/OpenEXR/Imath/ImathVec.h:2150:33: error: ISO C++17 does not allow dynamic exception specifications 2150 | Vec4<T>::normalizedExc () const throw (IEX_NAMESPACE::MathExc) | ^~~~~ In file included from Source/FreeImage/../OpenEXR/IlmImf/ImfXdr.h:108, from Source/FreeImage/../OpenEXR/IlmImf/ImfGenericOutputFile.h:40, from Source/FreeImage/../OpenEXR/IlmImf/ImfOutputFile.h:49: Source/OpenEXR/Half/half.h: In constructor ‘half::half(float)’: Source/OpenEXR/Half/half.h:462:22: warning: ISO C++17 does not allow ‘register’ storage class specifier [-Wregister] 462 | register int e = (x.i >> 23) & 0x000001ff; | ^ Source/OpenEXR/Half/half.h:473:26: warning: ISO C++17 does not allow ‘register’ storage class specifier [-Wregister] 473 | register int m = x.i & 0x007fffff; | ^ make: *** [Makefile.gnu:64: Source/FreeImage/PluginEXR.o] Error 1 ###ERROR### make failed [512] at inc/My/Builder/Unix.pm line 33. -> FAIL Installing Alien::FreeImage failed. See /root/.cpanm/work/1694702761.20233/build.log for details. Retry with --force to force install it. Thanks a lot, Thomas On Sat, Sep 2, 2023 at 12:47 AM Ed . <ej...@ho...> wrote: > Hi Thomas, > > > > You will want to install Term::ReadKey and probably Term::ReadLine::Gnu to > have a nicer, more interactive perldl. I don’t use pdl2 myself, but it did > tell you what it needs to run if you want to use it. > > > > Also, Alien::Gnuplot only installs (or checks for) actual gnuplot. If you > want the PDL interface to it, which PDL::Graphics::Simple wraps around, you > need to install PDL::Graphics::Gnuplot. This would solve the thing > PDL::Graphics::Simple was telling you: “Sorry, all known plotting engines > failed. Install one and try again.” Please read > https://metacpan.org/pod/PDL::Graphics::Simple#SUPPORTED-GRAPHICS-ENGINES > > > > Best regards, > > Ed > > > > *From: *ng...@gm... > *Sent: *01 September 2023 18:10 > *To: *Ed . <ej...@ho...> > *Cc: *Ingo Schmid <in...@gm...>; pdl...@li... > *Subject: *Re: [Pdl-devel] Debian 12 "-t experimental" install of PDL > > > > Hello Ed, > > > > as I understand, there a different options to get First Steps from the PDL > book to work. I have adopted the approach using perlbrew and cpanm as > they seem the most stable. > > > > Please find below the sequence of commands issued and the final error > messages under Ubuntu. I used the same approach on three different Linux > distributions (Debian, Ubuntu, Arch) with the same result. > > > > Is there any chance to reproduce the problem and look into it? > > > > Thanks a lot, Thomas > > > > # idea: install PDL piggyback from CPAN under perlbrew > > > > perlbrew init # change prompt in .profile, .bashrc > > perlbrew install perl-5.38.0 > > perlbrew install-cpanm > > perlbrew install-patchperl > > perlbrew switch perl-5.38.0 > > > > cpanm Alien::Gnuplot # first ...OK > > cpanm PDL::Graphics::Simple # second ...OK > > > > Ubuntu: ~ $ pdl2 > > pdl2: Devel::REPL version 1.003011 not found, running > '/home/th6mas/perl5/perlbrew/perls/perl-5.38.0/bin/perldl' instead... > > perlDL shell v1.357 > > PDL comes with ABSOLUTELY NO WARRANTY. For details, see the file > > 'COPYING' in the PDL distribution. This is free software and you > > are welcome to redistribute it under certain conditions, see > > the same file for details. > > ReadLines, NiceSlice, MultiLines enabled > > Reading PDL/default.perldlrc... > > WARNING: Error loading PDL: 'Can't locate Term/ReadKey.pm in @INC (you may > need to install the Term::ReadKey module) (@INC entries checked: > /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/lib/site_perl/5.38.0/x86_64-linux > /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/lib/site_perl/5.38.0 > /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/lib/5.38.0/x86_64-linux > /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/lib/5.38.0) at > /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/lib/site_perl/5.38.0/x86_64-linux/PDL/Doc/Perldl.pm > line 52. > > BEGIN failed--compilation aborted at > /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/lib/site_perl/5.38.0/x86_64-linux/PDL/Doc/Perldl.pm > line 52. > > Compilation failed in require at > /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/lib/site_perl/5.38.0/x86_64-linux/PDL/default.perldlrc > line 37. > > BEGIN failed--compilation aborted at > /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/lib/site_perl/5.38.0/x86_64-linux/PDL/default.perldlrc > line 37. > > Compilation failed in require at (eval 14) line 1. > > ' - trying blib. > > WARNING: PDL startup not found only plain perl available > > > > Note: AutoLoader not enabled ('use PDL::AutoLoader' recommended) > > > > perl> use PDL::Graphics::Simple > > Can't locate PDL/Graphics/PGPLOT/Window.pm in @INC (you may need to > install the PDL::Graphics::PGPLOT::Window module) (@INC entries checked: > /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/lib/site_perl/5.38.0/x86_64-linux > /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/lib/site_perl/5.38.0 > /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/lib/5.38.0/x86_64-linux > /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/lib/5.38.0) at > /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/lib/site_perl/5.38.0/PDL/Graphics/Simple/PGPLOT.pm > line 28, <STDIN> line 1. > > > > perl> imag (sin(rvals(200,200)+1)) > > Sorry, all known plotting engines failed. Install one and try again. > > at > /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/lib/site_perl/5.38.0/PDL/Graphics/Simple.pm > line 434, <STDIN> line 2. > > PDL::Graphics::Simple::new("PDL::Graphics::Simple") called at > /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/lib/site_perl/5.38.0/PDL/Graphics/Simple.pm > line 389 > > PDL::Graphics::Simple::pgswin() called at > /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/lib/site_perl/5.38.0/PDL/Graphics/Simple.pm > line 1262 > > PDL::Graphics::Simple::_global_or_new() called at > /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/lib/site_perl/5.38.0/PDL/Graphics/Simple.pm > line 1151 > > PDL::Graphics::Simple::imag(PDL=SCALAR(0x563dd1c9aca0)) called at (eval > 50) line 1 > > eval 'imag (sin(rvals(200,200)+1)) > > ' called at (eval 36) line 6 > > main::eval_and_report("imag (sin(rvals(200,200)+1))\x{a}") called at > /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/bin/perldl line 618 > > main::process_input() called at > /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/bin/perldl line 638 > > eval {...} called at > /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/bin/perldl line 638 > > require /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/bin/perldl called at > /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/bin/pdl2 line 27 > > main::BEGIN() called at > /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/bin/pdl2 line 33 > > eval {...} called at > /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/bin/pdl2 line 33 > > > > perl> quit > > > > > > On Fri, Sep 1, 2023 at 4:56 PM Ed . <ej...@ho...> wrote: > > Please just try with the latest (Perl 5.38, PDL 2.084), and report any > problems? > > > > Best regards, > > Ed > > > > *From: *ng...@gm... > *Sent: *31 August 2023 19:09 > *To: *Ingo Schmid <in...@gm...> > *Cc: *pdl...@li... > *Subject: *Re: [Pdl-devel] Debian 12 "-t experimental" install of PDL > > > > Hello Ingo, > > > > much appreciate! Just to ask which perl version is most likely to run the > commands from the First Step PDL Book? > > > > @anyone: which perl version is known to work for that purpose? > > > > Thanks a lot, Thomas > > > > On Thu, Aug 31, 2023 at 11:00 AM Ingo Schmid <in...@gm...> wrote: > > Hi, > > I have not really read through the whole thread, I apologise if this does > not apply to your problem then. > > I have moved most of the PDL stuff to perlbrew which allows a fairly > system independent installation, it's berrybrew on windows, I don't own > Macs. On linux, your distribution most probably provides it, I used apt to > install the software itself. The best part about is, that system (perl) > upgrades don't break your PDL installation. This allowed me to consistently > run things cross platform with no troubles for a long time. > > Run > > > perlbrew install <perl version> > > perlbrew install-cpanm > > perlbrew install-patchperl > > It takes a fair amount of installation time and I guess disk space, > defaults to your home. > > Please consult the perlbrew docs for the exact process, this is I think > the most useful info: https://perlbrew.pl/Perlbrew-and-Friends.html. Once > you are set, use > > > perlbrew switch ... > > > cpanm PDL::Graphics::Simple > > I guess you may need to install a few dependencies that are either > ambiguous or simply missing using cpanm from the same shell. I don't > remember if P:G:S comes with a default backend or if you need to, for > example, install gnuplot. > > I hope this helps. > > Ingo > > On 8/31/23 10:12, ng...@gm... wrote: > > Hello, > > > > would anyone with a working version mind to post some hints on how to > achieve: > > > > cpan PDL::Graphics::Simple > pdl> use PDL::Graphics::Simple > pdl> imag (sin(rvals(200,200)+1)) > > > > on no matter on which platform but with the least number of steps? > > > > Thanks a lot, Thomas > > > > On Wed, Aug 30, 2023 at 4:51 PM William Schmidt < > t.w...@gm...> wrote: > > 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 <ng...@gm...> 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* > cpan *graphics 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...@li... > https://lists.sourceforge.net/lists/listinfo/pdl-devel > > > > _______________________________________________ > > pdl-devel mailing list > > pdl...@li... > > https://lists.sourceforge.net/lists/listinfo/pdl-devel > > _______________________________________________ > pdl-devel mailing list > pdl...@li... > https://lists.sourceforge.net/lists/listinfo/pdl-devel > > > > > |
From: <ng...@gm...> - 2023-09-15 19:16:29
|
Hi David, as I have several pieces of hardware, I am able to generate fresh bare metal installations of an OS, if needed. I was able to test on Arch w/o sudo and it would simply not work i.e. not find relevant files. The problem with very sophisticated installations, they are hard if not impossible to reproduce. Regards, Thomas On Fri, Sep 15, 2023 at 6:59 PM David Mertens <dcm...@gm...> wrote: > Thomas, maybe I missed it, but why are you using sudo before your cpanm > commands? > > David > > On Thu, Sep 14, 2023, 11:05 AM <ng...@gm...> wrote: > >> Dear All / Ed, >> >> as mentioned before, it is possible to get a smooth installation of PDL >> using (Perl 5.38, PDL 2.084) under Arch - in fact EndeavourOS - by the >> commands below. perlbrew is not used as I have not seen a clean install >> e.g. under Ubuntu which is still on perl 5.36: >> >> yay cpanminus >> >> sudo cpanm Term::ReadKey >> >> sudo cpanm Term::ReadLine::Gnu >> >> sudo cpanm Alien::Gnuplot # first >> >> sudo cpanm PDL::Graphics::Gnuplot # second >> >> sudo cpanm PDL::Graphics::Simple # third, pops up >> >> However, *Alien::FreeImage* throws an error in a next step. Would any >> developer mind to fix it: >> >> sudo cpanm Alien::FreeImage # first >> (used by: sudo cpanm PDL::IO::Image # second) >> ... >> Source/OpenEXR/Imath/ImathVec.h:2150:33: error: ISO C++17 does not allow >> dynamic exception specifications >> 2150 | Vec4<T>::normalizedExc () const throw (IEX_NAMESPACE::MathExc) >> | ^~~~~ >> In file included from Source/FreeImage/../OpenEXR/IlmImf/ImfXdr.h:108, >> from >> Source/FreeImage/../OpenEXR/IlmImf/ImfGenericOutputFile.h:40, >> from >> Source/FreeImage/../OpenEXR/IlmImf/ImfOutputFile.h:49: >> Source/OpenEXR/Half/half.h: In constructor ‘half::half(float)’: >> Source/OpenEXR/Half/half.h:462:22: warning: ISO C++17 does not allow >> ‘register’ storage class specifier [-Wregister] >> 462 | register int e = (x.i >> 23) & 0x000001ff; >> | ^ >> Source/OpenEXR/Half/half.h:473:26: warning: ISO C++17 does not allow >> ‘register’ storage class specifier [-Wregister] >> 473 | register int m = x.i & 0x007fffff; >> | ^ >> make: *** [Makefile.gnu:64: Source/FreeImage/PluginEXR.o] Error 1 >> ###ERROR### make failed [512] at inc/My/Builder/Unix.pm line 33. >> -> FAIL Installing Alien::FreeImage failed. See >> /root/.cpanm/work/1694702761.20233/build.log for details. Retry with >> --force to force install it. >> >> Thanks a lot, Thomas >> >> On Sat, Sep 2, 2023 at 12:47 AM Ed . <ej...@ho...> wrote: >> >>> Hi Thomas, >>> >>> >>> >>> You will want to install Term::ReadKey and probably Term::ReadLine::Gnu >>> to have a nicer, more interactive perldl. I don’t use pdl2 myself, but it >>> did tell you what it needs to run if you want to use it. >>> >>> >>> >>> Also, Alien::Gnuplot only installs (or checks for) actual gnuplot. If >>> you want the PDL interface to it, which PDL::Graphics::Simple wraps around, >>> you need to install PDL::Graphics::Gnuplot. This would solve the thing >>> PDL::Graphics::Simple was telling you: “Sorry, all known plotting >>> engines failed. Install one and try again.” Please read >>> https://metacpan.org/pod/PDL::Graphics::Simple#SUPPORTED-GRAPHICS-ENGINES >>> >>> >>> >>> Best regards, >>> >>> Ed >>> >>> >>> >>> *From: *ng...@gm... >>> *Sent: *01 September 2023 18:10 >>> *To: *Ed . <ej...@ho...> >>> *Cc: *Ingo Schmid <in...@gm...>; pdl...@li... >>> *Subject: *Re: [Pdl-devel] Debian 12 "-t experimental" install of PDL >>> >>> >>> >>> Hello Ed, >>> >>> >>> >>> as I understand, there a different options to get First Steps from the >>> PDL book to work. I have adopted the approach using perlbrew and cpanm >>> as they seem the most stable. >>> >>> >>> >>> Please find below the sequence of commands issued and the final error >>> messages under Ubuntu. I used the same approach on three different Linux >>> distributions (Debian, Ubuntu, Arch) with the same result. >>> >>> >>> >>> Is there any chance to reproduce the problem and look into it? >>> >>> >>> >>> Thanks a lot, Thomas >>> >>> >>> >>> # idea: install PDL piggyback from CPAN under perlbrew >>> >>> >>> >>> perlbrew init # change prompt in .profile, .bashrc >>> >>> perlbrew install perl-5.38.0 >>> >>> perlbrew install-cpanm >>> >>> perlbrew install-patchperl >>> >>> perlbrew switch perl-5.38.0 >>> >>> >>> >>> cpanm Alien::Gnuplot # first ...OK >>> >>> cpanm PDL::Graphics::Simple # second ...OK >>> >>> >>> >>> Ubuntu: ~ $ pdl2 >>> >>> pdl2: Devel::REPL version 1.003011 not found, running >>> '/home/th6mas/perl5/perlbrew/perls/perl-5.38.0/bin/perldl' instead... >>> >>> perlDL shell v1.357 >>> >>> PDL comes with ABSOLUTELY NO WARRANTY. For details, see the file >>> >>> 'COPYING' in the PDL distribution. This is free software and you >>> >>> are welcome to redistribute it under certain conditions, see >>> >>> the same file for details. >>> >>> ReadLines, NiceSlice, MultiLines enabled >>> >>> Reading PDL/default.perldlrc... >>> >>> WARNING: Error loading PDL: 'Can't locate Term/ReadKey.pm in @INC (you >>> may need to install the Term::ReadKey module) (@INC entries checked: >>> /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/lib/site_perl/5.38.0/x86_64-linux >>> /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/lib/site_perl/5.38.0 >>> /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/lib/5.38.0/x86_64-linux >>> /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/lib/5.38.0) at >>> /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/lib/site_perl/5.38.0/x86_64-linux/PDL/Doc/Perldl.pm >>> line 52. >>> >>> BEGIN failed--compilation aborted at >>> /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/lib/site_perl/5.38.0/x86_64-linux/PDL/Doc/Perldl.pm >>> line 52. >>> >>> Compilation failed in require at >>> /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/lib/site_perl/5.38.0/x86_64-linux/PDL/default.perldlrc >>> line 37. >>> >>> BEGIN failed--compilation aborted at >>> /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/lib/site_perl/5.38.0/x86_64-linux/PDL/default.perldlrc >>> line 37. >>> >>> Compilation failed in require at (eval 14) line 1. >>> >>> ' - trying blib. >>> >>> WARNING: PDL startup not found only plain perl available >>> >>> >>> >>> Note: AutoLoader not enabled ('use PDL::AutoLoader' recommended) >>> >>> >>> >>> perl> use PDL::Graphics::Simple >>> >>> Can't locate PDL/Graphics/PGPLOT/Window.pm in @INC (you may need to >>> install the PDL::Graphics::PGPLOT::Window module) (@INC entries checked: >>> /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/lib/site_perl/5.38.0/x86_64-linux >>> /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/lib/site_perl/5.38.0 >>> /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/lib/5.38.0/x86_64-linux >>> /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/lib/5.38.0) at >>> /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/lib/site_perl/5.38.0/PDL/Graphics/Simple/PGPLOT.pm >>> line 28, <STDIN> line 1. >>> >>> >>> >>> perl> imag (sin(rvals(200,200)+1)) >>> >>> Sorry, all known plotting engines failed. Install one and try again. >>> >>> at >>> /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/lib/site_perl/5.38.0/PDL/Graphics/Simple.pm >>> line 434, <STDIN> line 2. >>> >>> PDL::Graphics::Simple::new("PDL::Graphics::Simple") called at >>> /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/lib/site_perl/5.38.0/PDL/Graphics/Simple.pm >>> line 389 >>> >>> PDL::Graphics::Simple::pgswin() called at >>> /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/lib/site_perl/5.38.0/PDL/Graphics/Simple.pm >>> line 1262 >>> >>> PDL::Graphics::Simple::_global_or_new() called at >>> /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/lib/site_perl/5.38.0/PDL/Graphics/Simple.pm >>> line 1151 >>> >>> PDL::Graphics::Simple::imag(PDL=SCALAR(0x563dd1c9aca0)) called at (eval >>> 50) line 1 >>> >>> eval 'imag (sin(rvals(200,200)+1)) >>> >>> ' called at (eval 36) line 6 >>> >>> main::eval_and_report("imag (sin(rvals(200,200)+1))\x{a}") called at >>> /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/bin/perldl line 618 >>> >>> main::process_input() called at >>> /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/bin/perldl line 638 >>> >>> eval {...} called at >>> /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/bin/perldl line 638 >>> >>> require /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/bin/perldl called >>> at /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/bin/pdl2 line 27 >>> >>> main::BEGIN() called at >>> /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/bin/pdl2 line 33 >>> >>> eval {...} called at >>> /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/bin/pdl2 line 33 >>> >>> >>> >>> perl> quit >>> >>> >>> >>> >>> >>> On Fri, Sep 1, 2023 at 4:56 PM Ed . <ej...@ho...> wrote: >>> >>> Please just try with the latest (Perl 5.38, PDL 2.084), and report any >>> problems? >>> >>> >>> >>> Best regards, >>> >>> Ed >>> >>> >>> >>> *From: *ng...@gm... >>> *Sent: *31 August 2023 19:09 >>> *To: *Ingo Schmid <in...@gm...> >>> *Cc: *pdl...@li... >>> *Subject: *Re: [Pdl-devel] Debian 12 "-t experimental" install of PDL >>> >>> >>> >>> Hello Ingo, >>> >>> >>> >>> much appreciate! Just to ask which perl version is most likely to run >>> the commands from the First Step PDL Book? >>> >>> >>> >>> @anyone: which perl version is known to work for that purpose? >>> >>> >>> >>> Thanks a lot, Thomas >>> >>> >>> >>> On Thu, Aug 31, 2023 at 11:00 AM Ingo Schmid <in...@gm...> wrote: >>> >>> Hi, >>> >>> I have not really read through the whole thread, I apologise if this >>> does not apply to your problem then. >>> >>> I have moved most of the PDL stuff to perlbrew which allows a fairly >>> system independent installation, it's berrybrew on windows, I don't own >>> Macs. On linux, your distribution most probably provides it, I used apt to >>> install the software itself. The best part about is, that system (perl) >>> upgrades don't break your PDL installation. This allowed me to consistently >>> run things cross platform with no troubles for a long time. >>> >>> Run >>> >>> > perlbrew install <perl version> >>> > perlbrew install-cpanm >>> > perlbrew install-patchperl >>> >>> It takes a fair amount of installation time and I guess disk space, >>> defaults to your home. >>> >>> Please consult the perlbrew docs for the exact process, this is I think >>> the most useful info: https://perlbrew.pl/Perlbrew-and-Friends.html. >>> Once you are set, use >>> >>> > perlbrew switch ... >>> >>> > cpanm PDL::Graphics::Simple >>> >>> I guess you may need to install a few dependencies that are either >>> ambiguous or simply missing using cpanm from the same shell. I don't >>> remember if P:G:S comes with a default backend or if you need to, for >>> example, install gnuplot. >>> >>> I hope this helps. >>> >>> Ingo >>> >>> On 8/31/23 10:12, ng...@gm... wrote: >>> >>> Hello, >>> >>> >>> >>> would anyone with a working version mind to post some hints on how to >>> achieve: >>> >>> >>> >>> cpan PDL::Graphics::Simple >>> pdl> use PDL::Graphics::Simple >>> pdl> imag (sin(rvals(200,200)+1)) >>> >>> >>> >>> on no matter on which platform but with the least number of steps? >>> >>> >>> >>> Thanks a lot, Thomas >>> >>> >>> >>> On Wed, Aug 30, 2023 at 4:51 PM William Schmidt < >>> t.w...@gm...> wrote: >>> >>> 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 <ng...@gm...> 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* >>> cpan *graphics 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...@li... >>> https://lists.sourceforge.net/lists/listinfo/pdl-devel >>> >>> >>> >>> _______________________________________________ >>> >>> pdl-devel mailing list >>> >>> pdl...@li... >>> >>> https://lists.sourceforge.net/lists/listinfo/pdl-devel >>> >>> _______________________________________________ >>> pdl-devel mailing list >>> pdl...@li... >>> https://lists.sourceforge.net/lists/listinfo/pdl-devel >>> >>> >>> >>> >>> >> _______________________________________________ >> pdl-devel mailing list >> pdl...@li... >> https://lists.sourceforge.net/lists/listinfo/pdl-devel >> > |
From: David M. <dcm...@gm...> - 2023-09-15 16:59:35
|
Thomas, maybe I missed it, but why are you using sudo before your cpanm commands? David On Thu, Sep 14, 2023, 11:05 AM <ng...@gm...> wrote: > Dear All / Ed, > > as mentioned before, it is possible to get a smooth installation of PDL > using (Perl 5.38, PDL 2.084) under Arch - in fact EndeavourOS - by the > commands below. perlbrew is not used as I have not seen a clean install > e.g. under Ubuntu which is still on perl 5.36: > > yay cpanminus > > sudo cpanm Term::ReadKey > > sudo cpanm Term::ReadLine::Gnu > > sudo cpanm Alien::Gnuplot # first > > sudo cpanm PDL::Graphics::Gnuplot # second > > sudo cpanm PDL::Graphics::Simple # third, pops up > > However, *Alien::FreeImage* throws an error in a next step. Would any > developer mind to fix it: > > sudo cpanm Alien::FreeImage # first > (used by: sudo cpanm PDL::IO::Image # second) > ... > Source/OpenEXR/Imath/ImathVec.h:2150:33: error: ISO C++17 does not allow > dynamic exception specifications > 2150 | Vec4<T>::normalizedExc () const throw (IEX_NAMESPACE::MathExc) > | ^~~~~ > In file included from Source/FreeImage/../OpenEXR/IlmImf/ImfXdr.h:108, > from > Source/FreeImage/../OpenEXR/IlmImf/ImfGenericOutputFile.h:40, > from > Source/FreeImage/../OpenEXR/IlmImf/ImfOutputFile.h:49: > Source/OpenEXR/Half/half.h: In constructor ‘half::half(float)’: > Source/OpenEXR/Half/half.h:462:22: warning: ISO C++17 does not allow > ‘register’ storage class specifier [-Wregister] > 462 | register int e = (x.i >> 23) & 0x000001ff; > | ^ > Source/OpenEXR/Half/half.h:473:26: warning: ISO C++17 does not allow > ‘register’ storage class specifier [-Wregister] > 473 | register int m = x.i & 0x007fffff; > | ^ > make: *** [Makefile.gnu:64: Source/FreeImage/PluginEXR.o] Error 1 > ###ERROR### make failed [512] at inc/My/Builder/Unix.pm line 33. > -> FAIL Installing Alien::FreeImage failed. See > /root/.cpanm/work/1694702761.20233/build.log for details. Retry with > --force to force install it. > > Thanks a lot, Thomas > > On Sat, Sep 2, 2023 at 12:47 AM Ed . <ej...@ho...> wrote: > >> Hi Thomas, >> >> >> >> You will want to install Term::ReadKey and probably Term::ReadLine::Gnu >> to have a nicer, more interactive perldl. I don’t use pdl2 myself, but it >> did tell you what it needs to run if you want to use it. >> >> >> >> Also, Alien::Gnuplot only installs (or checks for) actual gnuplot. If you >> want the PDL interface to it, which PDL::Graphics::Simple wraps around, you >> need to install PDL::Graphics::Gnuplot. This would solve the thing >> PDL::Graphics::Simple was telling you: “Sorry, all known plotting >> engines failed. Install one and try again.” Please read >> https://metacpan.org/pod/PDL::Graphics::Simple#SUPPORTED-GRAPHICS-ENGINES >> >> >> >> Best regards, >> >> Ed >> >> >> >> *From: *ng...@gm... >> *Sent: *01 September 2023 18:10 >> *To: *Ed . <ej...@ho...> >> *Cc: *Ingo Schmid <in...@gm...>; pdl...@li... >> *Subject: *Re: [Pdl-devel] Debian 12 "-t experimental" install of PDL >> >> >> >> Hello Ed, >> >> >> >> as I understand, there a different options to get First Steps from the >> PDL book to work. I have adopted the approach using perlbrew and cpanm >> as they seem the most stable. >> >> >> >> Please find below the sequence of commands issued and the final error >> messages under Ubuntu. I used the same approach on three different Linux >> distributions (Debian, Ubuntu, Arch) with the same result. >> >> >> >> Is there any chance to reproduce the problem and look into it? >> >> >> >> Thanks a lot, Thomas >> >> >> >> # idea: install PDL piggyback from CPAN under perlbrew >> >> >> >> perlbrew init # change prompt in .profile, .bashrc >> >> perlbrew install perl-5.38.0 >> >> perlbrew install-cpanm >> >> perlbrew install-patchperl >> >> perlbrew switch perl-5.38.0 >> >> >> >> cpanm Alien::Gnuplot # first ...OK >> >> cpanm PDL::Graphics::Simple # second ...OK >> >> >> >> Ubuntu: ~ $ pdl2 >> >> pdl2: Devel::REPL version 1.003011 not found, running >> '/home/th6mas/perl5/perlbrew/perls/perl-5.38.0/bin/perldl' instead... >> >> perlDL shell v1.357 >> >> PDL comes with ABSOLUTELY NO WARRANTY. For details, see the file >> >> 'COPYING' in the PDL distribution. This is free software and you >> >> are welcome to redistribute it under certain conditions, see >> >> the same file for details. >> >> ReadLines, NiceSlice, MultiLines enabled >> >> Reading PDL/default.perldlrc... >> >> WARNING: Error loading PDL: 'Can't locate Term/ReadKey.pm in @INC (you >> may need to install the Term::ReadKey module) (@INC entries checked: >> /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/lib/site_perl/5.38.0/x86_64-linux >> /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/lib/site_perl/5.38.0 >> /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/lib/5.38.0/x86_64-linux >> /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/lib/5.38.0) at >> /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/lib/site_perl/5.38.0/x86_64-linux/PDL/Doc/Perldl.pm >> line 52. >> >> BEGIN failed--compilation aborted at >> /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/lib/site_perl/5.38.0/x86_64-linux/PDL/Doc/Perldl.pm >> line 52. >> >> Compilation failed in require at >> /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/lib/site_perl/5.38.0/x86_64-linux/PDL/default.perldlrc >> line 37. >> >> BEGIN failed--compilation aborted at >> /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/lib/site_perl/5.38.0/x86_64-linux/PDL/default.perldlrc >> line 37. >> >> Compilation failed in require at (eval 14) line 1. >> >> ' - trying blib. >> >> WARNING: PDL startup not found only plain perl available >> >> >> >> Note: AutoLoader not enabled ('use PDL::AutoLoader' recommended) >> >> >> >> perl> use PDL::Graphics::Simple >> >> Can't locate PDL/Graphics/PGPLOT/Window.pm in @INC (you may need to >> install the PDL::Graphics::PGPLOT::Window module) (@INC entries checked: >> /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/lib/site_perl/5.38.0/x86_64-linux >> /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/lib/site_perl/5.38.0 >> /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/lib/5.38.0/x86_64-linux >> /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/lib/5.38.0) at >> /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/lib/site_perl/5.38.0/PDL/Graphics/Simple/PGPLOT.pm >> line 28, <STDIN> line 1. >> >> >> >> perl> imag (sin(rvals(200,200)+1)) >> >> Sorry, all known plotting engines failed. Install one and try again. >> >> at >> /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/lib/site_perl/5.38.0/PDL/Graphics/Simple.pm >> line 434, <STDIN> line 2. >> >> PDL::Graphics::Simple::new("PDL::Graphics::Simple") called at >> /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/lib/site_perl/5.38.0/PDL/Graphics/Simple.pm >> line 389 >> >> PDL::Graphics::Simple::pgswin() called at >> /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/lib/site_perl/5.38.0/PDL/Graphics/Simple.pm >> line 1262 >> >> PDL::Graphics::Simple::_global_or_new() called at >> /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/lib/site_perl/5.38.0/PDL/Graphics/Simple.pm >> line 1151 >> >> PDL::Graphics::Simple::imag(PDL=SCALAR(0x563dd1c9aca0)) called at (eval >> 50) line 1 >> >> eval 'imag (sin(rvals(200,200)+1)) >> >> ' called at (eval 36) line 6 >> >> main::eval_and_report("imag (sin(rvals(200,200)+1))\x{a}") called at >> /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/bin/perldl line 618 >> >> main::process_input() called at >> /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/bin/perldl line 638 >> >> eval {...} called at >> /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/bin/perldl line 638 >> >> require /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/bin/perldl called >> at /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/bin/pdl2 line 27 >> >> main::BEGIN() called at >> /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/bin/pdl2 line 33 >> >> eval {...} called at >> /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/bin/pdl2 line 33 >> >> >> >> perl> quit >> >> >> >> >> >> On Fri, Sep 1, 2023 at 4:56 PM Ed . <ej...@ho...> wrote: >> >> Please just try with the latest (Perl 5.38, PDL 2.084), and report any >> problems? >> >> >> >> Best regards, >> >> Ed >> >> >> >> *From: *ng...@gm... >> *Sent: *31 August 2023 19:09 >> *To: *Ingo Schmid <in...@gm...> >> *Cc: *pdl...@li... >> *Subject: *Re: [Pdl-devel] Debian 12 "-t experimental" install of PDL >> >> >> >> Hello Ingo, >> >> >> >> much appreciate! Just to ask which perl version is most likely to run the >> commands from the First Step PDL Book? >> >> >> >> @anyone: which perl version is known to work for that purpose? >> >> >> >> Thanks a lot, Thomas >> >> >> >> On Thu, Aug 31, 2023 at 11:00 AM Ingo Schmid <in...@gm...> wrote: >> >> Hi, >> >> I have not really read through the whole thread, I apologise if this does >> not apply to your problem then. >> >> I have moved most of the PDL stuff to perlbrew which allows a fairly >> system independent installation, it's berrybrew on windows, I don't own >> Macs. On linux, your distribution most probably provides it, I used apt to >> install the software itself. The best part about is, that system (perl) >> upgrades don't break your PDL installation. This allowed me to consistently >> run things cross platform with no troubles for a long time. >> >> Run >> >> > perlbrew install <perl version> >> > perlbrew install-cpanm >> > perlbrew install-patchperl >> >> It takes a fair amount of installation time and I guess disk space, >> defaults to your home. >> >> Please consult the perlbrew docs for the exact process, this is I think >> the most useful info: https://perlbrew.pl/Perlbrew-and-Friends.html. >> Once you are set, use >> >> > perlbrew switch ... >> >> > cpanm PDL::Graphics::Simple >> >> I guess you may need to install a few dependencies that are either >> ambiguous or simply missing using cpanm from the same shell. I don't >> remember if P:G:S comes with a default backend or if you need to, for >> example, install gnuplot. >> >> I hope this helps. >> >> Ingo >> >> On 8/31/23 10:12, ng...@gm... wrote: >> >> Hello, >> >> >> >> would anyone with a working version mind to post some hints on how to >> achieve: >> >> >> >> cpan PDL::Graphics::Simple >> pdl> use PDL::Graphics::Simple >> pdl> imag (sin(rvals(200,200)+1)) >> >> >> >> on no matter on which platform but with the least number of steps? >> >> >> >> Thanks a lot, Thomas >> >> >> >> On Wed, Aug 30, 2023 at 4:51 PM William Schmidt < >> t.w...@gm...> wrote: >> >> 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 <ng...@gm...> 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* >> cpan *graphics 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...@li... >> https://lists.sourceforge.net/lists/listinfo/pdl-devel >> >> >> >> _______________________________________________ >> >> pdl-devel mailing list >> >> pdl...@li... >> >> https://lists.sourceforge.net/lists/listinfo/pdl-devel >> >> _______________________________________________ >> pdl-devel mailing list >> pdl...@li... >> https://lists.sourceforge.net/lists/listinfo/pdl-devel >> >> >> >> >> > _______________________________________________ > pdl-devel mailing list > pdl...@li... > https://lists.sourceforge.net/lists/listinfo/pdl-devel > |
From: <ng...@gm...> - 2023-09-14 15:05:27
|
Dear All / Ed, as mentioned before, it is possible to get a smooth installation of PDL using (Perl 5.38, PDL 2.084) under Arch - in fact EndeavourOS - by the commands below. perlbrew is not used as I have not seen a clean install e.g. under Ubuntu which is still on perl 5.36: yay cpanminus sudo cpanm Term::ReadKey sudo cpanm Term::ReadLine::Gnu sudo cpanm Alien::Gnuplot # first sudo cpanm PDL::Graphics::Gnuplot # second sudo cpanm PDL::Graphics::Simple # third, pops up However, *Alien::FreeImage* throws an error in a next step. Would any developer mind to fix it: sudo cpanm Alien::FreeImage # first (used by: sudo cpanm PDL::IO::Image # second) ... Source/OpenEXR/Imath/ImathVec.h:2150:33: error: ISO C++17 does not allow dynamic exception specifications 2150 | Vec4<T>::normalizedExc () const throw (IEX_NAMESPACE::MathExc) | ^~~~~ In file included from Source/FreeImage/../OpenEXR/IlmImf/ImfXdr.h:108, from Source/FreeImage/../OpenEXR/IlmImf/ImfGenericOutputFile.h:40, from Source/FreeImage/../OpenEXR/IlmImf/ImfOutputFile.h:49: Source/OpenEXR/Half/half.h: In constructor ‘half::half(float)’: Source/OpenEXR/Half/half.h:462:22: warning: ISO C++17 does not allow ‘register’ storage class specifier [-Wregister] 462 | register int e = (x.i >> 23) & 0x000001ff; | ^ Source/OpenEXR/Half/half.h:473:26: warning: ISO C++17 does not allow ‘register’ storage class specifier [-Wregister] 473 | register int m = x.i & 0x007fffff; | ^ make: *** [Makefile.gnu:64: Source/FreeImage/PluginEXR.o] Error 1 ###ERROR### make failed [512] at inc/My/Builder/Unix.pm line 33. -> FAIL Installing Alien::FreeImage failed. See /root/.cpanm/work/1694702761.20233/build.log for details. Retry with --force to force install it. Thanks a lot, Thomas On Sat, Sep 2, 2023 at 12:47 AM Ed . <ej...@ho...> wrote: > Hi Thomas, > > > > You will want to install Term::ReadKey and probably Term::ReadLine::Gnu to > have a nicer, more interactive perldl. I don’t use pdl2 myself, but it did > tell you what it needs to run if you want to use it. > > > > Also, Alien::Gnuplot only installs (or checks for) actual gnuplot. If you > want the PDL interface to it, which PDL::Graphics::Simple wraps around, you > need to install PDL::Graphics::Gnuplot. This would solve the thing > PDL::Graphics::Simple was telling you: “Sorry, all known plotting engines > failed. Install one and try again.” Please read > https://metacpan.org/pod/PDL::Graphics::Simple#SUPPORTED-GRAPHICS-ENGINES > > > > Best regards, > > Ed > > > > *From: *ng...@gm... > *Sent: *01 September 2023 18:10 > *To: *Ed . <ej...@ho...> > *Cc: *Ingo Schmid <in...@gm...>; pdl...@li... > *Subject: *Re: [Pdl-devel] Debian 12 "-t experimental" install of PDL > > > > Hello Ed, > > > > as I understand, there a different options to get First Steps from the PDL > book to work. I have adopted the approach using perlbrew and cpanm as > they seem the most stable. > > > > Please find below the sequence of commands issued and the final error > messages under Ubuntu. I used the same approach on three different Linux > distributions (Debian, Ubuntu, Arch) with the same result. > > > > Is there any chance to reproduce the problem and look into it? > > > > Thanks a lot, Thomas > > > > # idea: install PDL piggyback from CPAN under perlbrew > > > > perlbrew init # change prompt in .profile, .bashrc > > perlbrew install perl-5.38.0 > > perlbrew install-cpanm > > perlbrew install-patchperl > > perlbrew switch perl-5.38.0 > > > > cpanm Alien::Gnuplot # first ...OK > > cpanm PDL::Graphics::Simple # second ...OK > > > > Ubuntu: ~ $ pdl2 > > pdl2: Devel::REPL version 1.003011 not found, running > '/home/th6mas/perl5/perlbrew/perls/perl-5.38.0/bin/perldl' instead... > > perlDL shell v1.357 > > PDL comes with ABSOLUTELY NO WARRANTY. For details, see the file > > 'COPYING' in the PDL distribution. This is free software and you > > are welcome to redistribute it under certain conditions, see > > the same file for details. > > ReadLines, NiceSlice, MultiLines enabled > > Reading PDL/default.perldlrc... > > WARNING: Error loading PDL: 'Can't locate Term/ReadKey.pm in @INC (you may > need to install the Term::ReadKey module) (@INC entries checked: > /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/lib/site_perl/5.38.0/x86_64-linux > /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/lib/site_perl/5.38.0 > /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/lib/5.38.0/x86_64-linux > /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/lib/5.38.0) at > /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/lib/site_perl/5.38.0/x86_64-linux/PDL/Doc/Perldl.pm > line 52. > > BEGIN failed--compilation aborted at > /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/lib/site_perl/5.38.0/x86_64-linux/PDL/Doc/Perldl.pm > line 52. > > Compilation failed in require at > /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/lib/site_perl/5.38.0/x86_64-linux/PDL/default.perldlrc > line 37. > > BEGIN failed--compilation aborted at > /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/lib/site_perl/5.38.0/x86_64-linux/PDL/default.perldlrc > line 37. > > Compilation failed in require at (eval 14) line 1. > > ' - trying blib. > > WARNING: PDL startup not found only plain perl available > > > > Note: AutoLoader not enabled ('use PDL::AutoLoader' recommended) > > > > perl> use PDL::Graphics::Simple > > Can't locate PDL/Graphics/PGPLOT/Window.pm in @INC (you may need to > install the PDL::Graphics::PGPLOT::Window module) (@INC entries checked: > /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/lib/site_perl/5.38.0/x86_64-linux > /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/lib/site_perl/5.38.0 > /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/lib/5.38.0/x86_64-linux > /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/lib/5.38.0) at > /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/lib/site_perl/5.38.0/PDL/Graphics/Simple/PGPLOT.pm > line 28, <STDIN> line 1. > > > > perl> imag (sin(rvals(200,200)+1)) > > Sorry, all known plotting engines failed. Install one and try again. > > at > /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/lib/site_perl/5.38.0/PDL/Graphics/Simple.pm > line 434, <STDIN> line 2. > > PDL::Graphics::Simple::new("PDL::Graphics::Simple") called at > /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/lib/site_perl/5.38.0/PDL/Graphics/Simple.pm > line 389 > > PDL::Graphics::Simple::pgswin() called at > /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/lib/site_perl/5.38.0/PDL/Graphics/Simple.pm > line 1262 > > PDL::Graphics::Simple::_global_or_new() called at > /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/lib/site_perl/5.38.0/PDL/Graphics/Simple.pm > line 1151 > > PDL::Graphics::Simple::imag(PDL=SCALAR(0x563dd1c9aca0)) called at (eval > 50) line 1 > > eval 'imag (sin(rvals(200,200)+1)) > > ' called at (eval 36) line 6 > > main::eval_and_report("imag (sin(rvals(200,200)+1))\x{a}") called at > /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/bin/perldl line 618 > > main::process_input() called at > /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/bin/perldl line 638 > > eval {...} called at > /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/bin/perldl line 638 > > require /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/bin/perldl called at > /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/bin/pdl2 line 27 > > main::BEGIN() called at > /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/bin/pdl2 line 33 > > eval {...} called at > /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/bin/pdl2 line 33 > > > > perl> quit > > > > > > On Fri, Sep 1, 2023 at 4:56 PM Ed . <ej...@ho...> wrote: > > Please just try with the latest (Perl 5.38, PDL 2.084), and report any > problems? > > > > Best regards, > > Ed > > > > *From: *ng...@gm... > *Sent: *31 August 2023 19:09 > *To: *Ingo Schmid <in...@gm...> > *Cc: *pdl...@li... > *Subject: *Re: [Pdl-devel] Debian 12 "-t experimental" install of PDL > > > > Hello Ingo, > > > > much appreciate! Just to ask which perl version is most likely to run the > commands from the First Step PDL Book? > > > > @anyone: which perl version is known to work for that purpose? > > > > Thanks a lot, Thomas > > > > On Thu, Aug 31, 2023 at 11:00 AM Ingo Schmid <in...@gm...> wrote: > > Hi, > > I have not really read through the whole thread, I apologise if this does > not apply to your problem then. > > I have moved most of the PDL stuff to perlbrew which allows a fairly > system independent installation, it's berrybrew on windows, I don't own > Macs. On linux, your distribution most probably provides it, I used apt to > install the software itself. The best part about is, that system (perl) > upgrades don't break your PDL installation. This allowed me to consistently > run things cross platform with no troubles for a long time. > > Run > > > perlbrew install <perl version> > > perlbrew install-cpanm > > perlbrew install-patchperl > > It takes a fair amount of installation time and I guess disk space, > defaults to your home. > > Please consult the perlbrew docs for the exact process, this is I think > the most useful info: https://perlbrew.pl/Perlbrew-and-Friends.html. Once > you are set, use > > > perlbrew switch ... > > > cpanm PDL::Graphics::Simple > > I guess you may need to install a few dependencies that are either > ambiguous or simply missing using cpanm from the same shell. I don't > remember if P:G:S comes with a default backend or if you need to, for > example, install gnuplot. > > I hope this helps. > > Ingo > > On 8/31/23 10:12, ng...@gm... wrote: > > Hello, > > > > would anyone with a working version mind to post some hints on how to > achieve: > > > > cpan PDL::Graphics::Simple > pdl> use PDL::Graphics::Simple > pdl> imag (sin(rvals(200,200)+1)) > > > > on no matter on which platform but with the least number of steps? > > > > Thanks a lot, Thomas > > > > On Wed, Aug 30, 2023 at 4:51 PM William Schmidt < > t.w...@gm...> wrote: > > 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 <ng...@gm...> 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* > cpan *graphics 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...@li... > https://lists.sourceforge.net/lists/listinfo/pdl-devel > > > > _______________________________________________ > > pdl-devel mailing list > > pdl...@li... > > https://lists.sourceforge.net/lists/listinfo/pdl-devel > > _______________________________________________ > pdl-devel mailing list > pdl...@li... > https://lists.sourceforge.net/lists/listinfo/pdl-devel > > > > > |
From: Ingo S. <in...@gm...> - 2023-09-05 10:47:15
|
Dear Thomas, the key is to set PERLBREW_ROOT correctly (or use the default, if you did during the instal), enable perlbrew (switch or use) in the shell where you run cpanm. The key point is, that you do NOT want to install stuff into your system folders but rather into your perlbrew installation. Thus, all perl stuff, including perl and all CPAN modules are in a separate contained place and are thus independent of (most) system changes. Ingo On 9/5/23 12:29, ng...@gm... wrote: > Dear Ingo, > > understood. However, in the Arch installation sudo cpanm was the key > to get it to work. Otherwise, cpanm puts stuff locally where it is not > found by the system. It would be nice, if s.o. tried to record an > installation on a fresh Ubuntu and posted it. > > Thanks a lot, Thomas > > On Tue, Sep 5, 2023 at 11:49 AM Ingo Schmid <in...@gm...> wrote: > > Dear Thomas and all, > > there'a misconception, I fear, about using perlbrew and sudo. Once > you install the perbrew software (using sudo), the rest is in user > space. > > Run perlbrew install , etc. as listed below and then simply > continue with cpanm as user, no --sudo, which installs stuff in > your $PERLBREW_ROOT folder. > > I hope this helps. > > Ingo > > If you use sudo, I think it will open a new shell (as root) with > the system perl enabled. > > On 9/5/23 10:56, ng...@gm... wrote: >> Here is my attempt to getting PDL to work in Ubuntu similar to >> an already functional version in Arch, see logs below my >> personal instructions. >> >> Has anyone encountered similar issues or knows a remedy? >> >> Thanks a lot, Thomas >> >> # begin of my docu >> ############################################################ >> >> 1. perlbrew # needed, if system uses older perl version! >> >> >> sudo apt -y install perlbrew >> >> perlbrew init # add to .profile, .bashrc >> >> perlbrew install perl-5.38.0 >> >> perlbrew install-cpanm >> >> perlbrew install-patchperl >> >> perlbrew switchperl-5.38.0 >> >> >> 2. cpanm >> >> sudo apt install build-essential >> >> >> https://stackoverflow.com/questions/35144752/cpanm-perlbrew-not-working-with-sudo >> <https://stackoverflow.com/questions/35144752/cpanm-perlbrew-not-working-with-sudo> >> >> >> cpanm --sudoTerm::ReadKey >> >> >> sudo apt install libreadline-dev >> >> cpanm --sudoTerm::ReadLine::Gnu >> >> >> # use gnuplot vs pgplot on macos! >> >> https://metacpan.org/pod/PDL::Graphics::Simple#SUPPORTED-GRAPHICS-ENGINES >> <https://metacpan.org/pod/PDL::Graphics::Simple#SUPPORTED-GRAPHICS-ENGINES> >> >> >> cpanm --sudo Alien::Gnuplot # first >> >> cpanm --sudo PDL::Graphics::Gnuplot # second >> >> cpanm --sudo PDL::Graphics::Simple # third, pops up >> >> # end of my docu >> ############################################################ >> >> th6mas@x670:~$ cpanm --sudo Alien::Gnuplot >> ... >> ! Installing the dependencies failed: Module 'IO::Socket::SSL' is >> not installed, Module 'Net::SSLeay' is not installed >> ! Bailing out the installation for Alien-Gnuplot-1.042. >> 18 distributions installed >> >> th6mas@x670:~$ cpanm --sudo IO::Socket::SSL >> --> Working on IO::Socket::SSL >> Fetching >> http://www.cpan.org/authors/id/S/SU/SULLR/IO-Socket-SSL-2.083.tar.gz >> ... OK >> ==> Found dependencies: Net::SSLeay >> --> Working on Net::SSLeay >> Fetching >> http://www.cpan.org/authors/id/C/CH/CHRISN/Net-SSLeay-1.92.tar.gz >> ... OK >> Configuring Net-SSLeay-1.92 ... N/A >> ! Configure failed for Net-SSLeay-1.92. See >> /home/th6mas/.cpanm/work/1693903687.61645/build.log for details. >> ! Installing the dependencies failed: Module 'Net::SSLeay' is not >> installed >> ! Bailing out the installation for IO-Socket-SSL-2.083. >> >> th6mas@x670:~$ cpanm --sudo Net::SSLeay >> --> Working on Net::SSLeay >> Fetching >> http://www.cpan.org/authors/id/C/CH/CHRISN/Net-SSLeay-1.92.tar.gz >> ... OK >> Configuring Net-SSLeay-1.92 ... N/A >> ! Configure failed for Net-SSLeay-1.92. See >> /home/th6mas/.cpanm/work/1693903705.61662/build.log for details. >> >> On Sat, Sep 2, 2023 at 12:47 AM Ed . <ej...@ho...> wrote: >> >> Hi Thomas, >> >> You will want to install Term::ReadKey and probably >> Term::ReadLine::Gnu to have a nicer, more interactive perldl. >> I don’t use pdl2 myself, but it did tell you what it needs to >> run if you want to use it. >> >> Also, Alien::Gnuplot only installs (or checks for) actual >> gnuplot. If you want the PDL interface to it, which >> PDL::Graphics::Simple wraps around, you need to install >> PDL::Graphics::Gnuplot. This would solve the thing >> PDL::Graphics::Simple was telling you: “Sorry, all known >> plotting engines failed. Install one and try again.” Please >> read >> https://metacpan.org/pod/PDL::Graphics::Simple#SUPPORTED-GRAPHICS-ENGINES >> >> Best regards, >> >> Ed >> >> *From: *ng...@gm... >> *Sent: *01 September 2023 18:10 >> *To: *Ed . <mailto:ej...@ho...> >> *Cc: *Ingo Schmid <mailto:in...@gm...>; >> pdl...@li... >> *Subject: *Re: [Pdl-devel] Debian 12 "-t experimental" >> install of PDL >> >> Hello Ed, >> >> as I understand, there a different options to get First Steps >> from the PDL book to work. I have adopted the approach using >> perlbrewand cpanmas they seem the most stable. >> >> >> >> Please find below the sequence of commands issued and the >> final error messages under Ubuntu. I used the same approach >> on three different Linux distributions (Debian, Ubuntu, Arch) >> with the same result. >> >> Is there any chance to reproduce the problem and look into it? >> >> Thanks a lot, Thomas >> >> # idea: install PDL piggyback from CPAN under perlbrew >> >> perlbrew init # change prompt in .profile, .bashrc >> >> perlbrew install perl-5.38.0 >> >> perlbrew install-cpanm >> >> perlbrew install-patchperl >> >> perlbrew switch perl-5.38.0 >> >> cpanm Alien::Gnuplot # first ...OK >> >> cpanm PDL::Graphics::Simple # second ...OK >> >> Ubuntu: ~ $ pdl2 >> >> pdl2: Devel::REPL version 1.003011 not found, running >> '/home/th6mas/perl5/perlbrew/perls/perl-5.38.0/bin/perldl' >> instead... >> >> perlDL shell v1.357 >> >> PDL comes with ABSOLUTELY NO WARRANTY. For details, see the file >> >> 'COPYING' in the PDL distribution. This is free software and you >> >> are welcome to redistribute it under certain conditions, see >> >> the same file for details. >> >> ReadLines, NiceSlice, MultiLines enabled >> >> Reading PDL/default.perldlrc... >> >> WARNING: Error loading PDL: 'Can't locate Term/ReadKey.pm in >> @INC (you may need to install the Term::ReadKey module) (@INC >> entries checked: >> /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/lib/site_perl/5.38.0/x86_64-linux >> /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/lib/site_perl/5.38.0 >> /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/lib/5.38.0/x86_64-linux >> /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/lib/5.38.0) at >> /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/lib/site_perl/5.38.0/x86_64-linux/PDL/Doc/Perldl.pm >> line 52. >> >> BEGIN failed--compilation aborted at >> /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/lib/site_perl/5.38.0/x86_64-linux/PDL/Doc/Perldl.pm >> line 52. >> >> Compilation failed in require at >> /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/lib/site_perl/5.38.0/x86_64-linux/PDL/default.perldlrc >> line 37. >> >> BEGIN failed--compilation aborted at >> /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/lib/site_perl/5.38.0/x86_64-linux/PDL/default.perldlrc >> line 37. >> >> Compilation failed in require at (eval 14) line 1. >> >> ' - trying blib. >> >> WARNING: PDL startup not found only plain perl available >> >> Note: AutoLoader not enabled ('use PDL::AutoLoader' recommended) >> >> perl> use PDL::Graphics::Simple >> >> Can't locate PDL/Graphics/PGPLOT/Window.pm in @INC (you may >> need to install the PDL::Graphics::PGPLOT::Window module) >> (@INC entries checked: >> /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/lib/site_perl/5.38.0/x86_64-linux >> /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/lib/site_perl/5.38.0 >> /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/lib/5.38.0/x86_64-linux >> /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/lib/5.38.0) at >> /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/lib/site_perl/5.38.0/PDL/Graphics/Simple/PGPLOT.pm >> line 28, <STDIN> line 1. >> >> perl> imag (sin(rvals(200,200)+1)) >> >> Sorry, all known plotting engines failed. Install one and try >> again. >> >> at >> /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/lib/site_perl/5.38.0/PDL/Graphics/Simple.pm >> line 434, <STDIN> line 2. >> >> PDL::Graphics::Simple::new("PDL::Graphics::Simple") called at >> /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/lib/site_perl/5.38.0/PDL/Graphics/Simple.pm >> line 389 >> >> PDL::Graphics::Simple::pgswin() called at >> /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/lib/site_perl/5.38.0/PDL/Graphics/Simple.pm >> line 1262 >> >> PDL::Graphics::Simple::_global_or_new() called at >> /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/lib/site_perl/5.38.0/PDL/Graphics/Simple.pm >> line 1151 >> >> PDL::Graphics::Simple::imag(PDL=SCALAR(0x563dd1c9aca0)) >> called at (eval 50) line 1 >> >> eval 'imag (sin(rvals(200,200)+1)) >> >> ' called at (eval 36) line 6 >> >> main::eval_and_report("imag (sin(rvals(200,200)+1))\x{a}") >> called at >> /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/bin/perldl line 618 >> >> main::process_input() called at >> /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/bin/perldl line 638 >> >> eval {...} called at >> /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/bin/perldl line 638 >> >> require >> /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/bin/perldl >> called at >> /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/bin/pdl2 line 27 >> >> main::BEGIN() called at >> /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/bin/pdl2 line 33 >> >> eval {...} called at >> /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/bin/pdl2 line 33 >> >> perl> quit >> >> On Fri, Sep 1, 2023 at 4:56 PM Ed . <ej...@ho...> wrote: >> >> Please just try with the latest (Perl 5.38, PDL 2.084), >> and report any problems? >> >> Best regards, >> >> Ed >> >> *From: *ng...@gm... >> *Sent: *31 August 2023 19:09 >> *To: *Ingo Schmid <mailto:in...@gm...> >> *Cc: *pdl...@li... >> *Subject: *Re: [Pdl-devel] Debian 12 "-t experimental" >> install of PDL >> >> Hello Ingo, >> >> much appreciate! Just to ask which perl version is most >> likely to run the commands from the First Step PDL Book? >> >> @anyone: which perl version is known to work for that >> purpose? >> >> Thanks a lot, Thomas >> >> On Thu, Aug 31, 2023 at 11:00 AM Ingo Schmid >> <in...@gm...> wrote: >> >> Hi, >> >> I have not really read through the whole thread, I >> apologise if this does not apply to your problem then. >> >> I have moved most of the PDL stuff to perlbrew which >> allows a fairly system independent installation, it's >> berrybrew on windows, I don't own Macs. On linux, >> your distribution most probably provides it, I used >> apt to install the software itself. The best part >> about is, that system (perl) upgrades don't break >> your PDL installation. This allowed me to >> consistently run things cross platform with no >> troubles for a long time. >> >> Run >> >> > perlbrew install <perl version> >> > perlbrew install-cpanm >> > perlbrew install-patchperl >> >> It takes a fair amount of installation time and I >> guess disk space, defaults to your home. >> >> Please consult the perlbrew docs for the exact >> process, this is I think the most useful info: >> https://perlbrew.pl/Perlbrew-and-Friends.html. Once >> you are set, use >> >> > perlbrew switch ... >> >> > cpanm PDL::Graphics::Simple >> >> I guess you may need to install a few dependencies >> that are either ambiguous or simply missing using >> cpanm from the same shell. I don't remember if P:G:S >> comes with a default backend or if you need to, for >> example, install gnuplot. >> >> I hope this helps. >> >> Ingo >> >> On 8/31/23 10:12, ng...@gm... wrote: >> >> Hello, >> >> would anyone with a working version mind to post >> some hints on how to achieve: >> >> cpan PDL::Graphics::Simple >> pdl> use PDL::Graphics::Simple >> pdl> imag (sin(rvals(200,200)+1)) >> >> on no matter on which platform but with the least >> number of steps? >> >> Thanks a lot, Thomas >> >> On Wed, Aug 30, 2023 at 4:51 PM William Schmidt >> <t.w...@gm...> wrote: >> >> 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 >> <ng...@gm...> 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* >> >> >> cpan >> >> >> /graphics 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 >> <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...@li... >> https://lists.sourceforge.net/lists/listinfo/pdl-devel >> >> >> >> _______________________________________________ >> >> pdl-devel mailing list >> >> pdl...@li... >> >> https://lists.sourceforge.net/lists/listinfo/pdl-devel >> >> _______________________________________________ >> pdl-devel mailing list >> pdl...@li... >> https://lists.sourceforge.net/lists/listinfo/pdl-devel >> >> >> >> _______________________________________________ >> pdl-devel mailing list >> pdl...@li... >> https://lists.sourceforge.net/lists/listinfo/pdl-devel > _______________________________________________ > pdl-devel mailing list > pdl...@li... > https://lists.sourceforge.net/lists/listinfo/pdl-devel > |
From: <ng...@gm...> - 2023-09-05 10:29:27
|
Dear Ingo, understood. However, in the Arch installation sudo cpanm was the key to get it to work. Otherwise, cpanm puts stuff locally where it is not found by the system. It would be nice, if s.o. tried to record an installation on a fresh Ubuntu and posted it. Thanks a lot, Thomas On Tue, Sep 5, 2023 at 11:49 AM Ingo Schmid <in...@gm...> wrote: > Dear Thomas and all, > > there'a misconception, I fear, about using perlbrew and sudo. Once you > install the perbrew software (using sudo), the rest is in user space. > > Run perlbrew install , etc. as listed below and then simply continue with > cpanm as user, no --sudo, which installs stuff in your $PERLBREW_ROOT > folder. > > I hope this helps. > > Ingo > > If you use sudo, I think it will open a new shell (as root) with the > system perl enabled. > On 9/5/23 10:56, ng...@gm... wrote: > > Here is my attempt to getting PDL to work in Ubuntu similar to an already > functional version in Arch, see logs below my personal instructions. > > Has anyone encountered similar issues or knows a remedy? > > Thanks a lot, Thomas > > # begin of my docu > ############################################################ > > 1. perlbrew # needed, if system uses older perl version! > > sudo apt -y install perlbrew > > perlbrew init # add to .profile, .bashrc > > perlbrew install perl-5.38.0 > > perlbrew install-cpanm > > perlbrew install-patchperl > > perlbrew switch perl-5.38.0 > > 2. cpanm > > sudo apt install build-essential > > > https://stackoverflow.com/questions/35144752/cpanm-perlbrew-not-working-with-sudo > > cpanm --sudo Term::ReadKey > > sudo apt install libreadline-dev > > cpanm --sudo Term::ReadLine::Gnu > > # use gnuplot vs pgplot on macos! > > https://metacpan.org/pod/PDL::Graphics::Simple#SUPPORTED-GRAPHICS-ENGINES > > cpanm --sudo Alien::Gnuplot # first > > cpanm --sudo PDL::Graphics::Gnuplot # second > > cpanm --sudo PDL::Graphics::Simple # third, pops up > # end of my docu > ############################################################ > > th6mas@x670:~$ cpanm --sudo Alien::Gnuplot > ... > ! Installing the dependencies failed: Module 'IO::Socket::SSL' is not > installed, Module 'Net::SSLeay' is not installed > ! Bailing out the installation for Alien-Gnuplot-1.042. > 18 distributions installed > > th6mas@x670:~$ cpanm --sudo IO::Socket::SSL > --> Working on IO::Socket::SSL > Fetching > http://www.cpan.org/authors/id/S/SU/SULLR/IO-Socket-SSL-2.083.tar.gz ... > OK > ==> Found dependencies: Net::SSLeay > --> Working on Net::SSLeay > Fetching http://www.cpan.org/authors/id/C/CH/CHRISN/Net-SSLeay-1.92.tar.gz > ... OK > Configuring Net-SSLeay-1.92 ... N/A > ! Configure failed for Net-SSLeay-1.92. See > /home/th6mas/.cpanm/work/1693903687.61645/build.log for details. > ! Installing the dependencies failed: Module 'Net::SSLeay' is not > installed > ! Bailing out the installation for IO-Socket-SSL-2.083. > > th6mas@x670:~$ cpanm --sudo Net::SSLeay > --> Working on Net::SSLeay > Fetching http://www.cpan.org/authors/id/C/CH/CHRISN/Net-SSLeay-1.92.tar.gz > ... OK > Configuring Net-SSLeay-1.92 ... N/A > ! Configure failed for Net-SSLeay-1.92. See > /home/th6mas/.cpanm/work/1693903705.61662/build.log for details. > > On Sat, Sep 2, 2023 at 12:47 AM Ed . <ej...@ho...> wrote: > >> Hi Thomas, >> >> >> >> You will want to install Term::ReadKey and probably Term::ReadLine::Gnu >> to have a nicer, more interactive perldl. I don’t use pdl2 myself, but it >> did tell you what it needs to run if you want to use it. >> >> >> >> Also, Alien::Gnuplot only installs (or checks for) actual gnuplot. If you >> want the PDL interface to it, which PDL::Graphics::Simple wraps around, you >> need to install PDL::Graphics::Gnuplot. This would solve the thing >> PDL::Graphics::Simple was telling you: “Sorry, all known plotting >> engines failed. Install one and try again.” Please read >> https://metacpan.org/pod/PDL::Graphics::Simple#SUPPORTED-GRAPHICS-ENGINES >> >> >> >> Best regards, >> >> Ed >> >> >> >> *From: *ng...@gm... >> *Sent: *01 September 2023 18:10 >> *To: *Ed . <ej...@ho...> >> *Cc: *Ingo Schmid <in...@gm...>; pdl...@li... >> *Subject: *Re: [Pdl-devel] Debian 12 "-t experimental" install of PDL >> >> >> >> Hello Ed, >> >> >> >> as I understand, there a different options to get First Steps from the >> PDL book to work. I have adopted the approach using perlbrew and cpanm >> as they seem the most stable. >> >> >> >> Please find below the sequence of commands issued and the final error >> messages under Ubuntu. I used the same approach on three different Linux >> distributions (Debian, Ubuntu, Arch) with the same result. >> >> >> >> Is there any chance to reproduce the problem and look into it? >> >> >> >> Thanks a lot, Thomas >> >> >> >> # idea: install PDL piggyback from CPAN under perlbrew >> >> >> >> perlbrew init # change prompt in .profile, .bashrc >> >> perlbrew install perl-5.38.0 >> >> perlbrew install-cpanm >> >> perlbrew install-patchperl >> >> perlbrew switch perl-5.38.0 >> >> >> >> cpanm Alien::Gnuplot # first ...OK >> >> cpanm PDL::Graphics::Simple # second ...OK >> >> >> >> Ubuntu: ~ $ pdl2 >> >> pdl2: Devel::REPL version 1.003011 not found, running >> '/home/th6mas/perl5/perlbrew/perls/perl-5.38.0/bin/perldl' instead... >> >> perlDL shell v1.357 >> >> PDL comes with ABSOLUTELY NO WARRANTY. For details, see the file >> >> 'COPYING' in the PDL distribution. This is free software and you >> >> are welcome to redistribute it under certain conditions, see >> >> the same file for details. >> >> ReadLines, NiceSlice, MultiLines enabled >> >> Reading PDL/default.perldlrc... >> >> WARNING: Error loading PDL: 'Can't locate Term/ReadKey.pm in @INC (you >> may need to install the Term::ReadKey module) (@INC entries checked: >> /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/lib/site_perl/5.38.0/x86_64-linux >> /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/lib/site_perl/5.38.0 >> /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/lib/5.38.0/x86_64-linux >> /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/lib/5.38.0) at >> /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/lib/site_perl/5.38.0/x86_64-linux/PDL/Doc/Perldl.pm >> line 52. >> >> BEGIN failed--compilation aborted at >> /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/lib/site_perl/5.38.0/x86_64-linux/PDL/Doc/Perldl.pm >> line 52. >> >> Compilation failed in require at >> /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/lib/site_perl/5.38.0/x86_64-linux/PDL/default.perldlrc >> line 37. >> >> BEGIN failed--compilation aborted at >> /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/lib/site_perl/5.38.0/x86_64-linux/PDL/default.perldlrc >> line 37. >> >> Compilation failed in require at (eval 14) line 1. >> >> ' - trying blib. >> >> WARNING: PDL startup not found only plain perl available >> >> >> >> Note: AutoLoader not enabled ('use PDL::AutoLoader' recommended) >> >> >> >> perl> use PDL::Graphics::Simple >> >> Can't locate PDL/Graphics/PGPLOT/Window.pm in @INC (you may need to >> install the PDL::Graphics::PGPLOT::Window module) (@INC entries checked: >> /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/lib/site_perl/5.38.0/x86_64-linux >> /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/lib/site_perl/5.38.0 >> /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/lib/5.38.0/x86_64-linux >> /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/lib/5.38.0) at >> /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/lib/site_perl/5.38.0/PDL/Graphics/Simple/PGPLOT.pm >> line 28, <STDIN> line 1. >> >> >> >> perl> imag (sin(rvals(200,200)+1)) >> >> Sorry, all known plotting engines failed. Install one and try again. >> >> at >> /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/lib/site_perl/5.38.0/PDL/Graphics/Simple.pm >> line 434, <STDIN> line 2. >> >> PDL::Graphics::Simple::new("PDL::Graphics::Simple") called at >> /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/lib/site_perl/5.38.0/PDL/Graphics/Simple.pm >> line 389 >> >> PDL::Graphics::Simple::pgswin() called at >> /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/lib/site_perl/5.38.0/PDL/Graphics/Simple.pm >> line 1262 >> >> PDL::Graphics::Simple::_global_or_new() called at >> /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/lib/site_perl/5.38.0/PDL/Graphics/Simple.pm >> line 1151 >> >> PDL::Graphics::Simple::imag(PDL=SCALAR(0x563dd1c9aca0)) called at (eval >> 50) line 1 >> >> eval 'imag (sin(rvals(200,200)+1)) >> >> ' called at (eval 36) line 6 >> >> main::eval_and_report("imag (sin(rvals(200,200)+1))\x{a}") called at >> /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/bin/perldl line 618 >> >> main::process_input() called at >> /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/bin/perldl line 638 >> >> eval {...} called at >> /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/bin/perldl line 638 >> >> require /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/bin/perldl called >> at /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/bin/pdl2 line 27 >> >> main::BEGIN() called at >> /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/bin/pdl2 line 33 >> >> eval {...} called at >> /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/bin/pdl2 line 33 >> >> >> >> perl> quit >> >> >> >> >> >> On Fri, Sep 1, 2023 at 4:56 PM Ed . <ej...@ho...> wrote: >> >> Please just try with the latest (Perl 5.38, PDL 2.084), and report any >> problems? >> >> >> >> Best regards, >> >> Ed >> >> >> >> *From: *ng...@gm... >> *Sent: *31 August 2023 19:09 >> *To: *Ingo Schmid <in...@gm...> >> *Cc: *pdl...@li... >> *Subject: *Re: [Pdl-devel] Debian 12 "-t experimental" install of PDL >> >> >> >> Hello Ingo, >> >> >> >> much appreciate! Just to ask which perl version is most likely to run the >> commands from the First Step PDL Book? >> >> >> >> @anyone: which perl version is known to work for that purpose? >> >> >> >> Thanks a lot, Thomas >> >> >> >> On Thu, Aug 31, 2023 at 11:00 AM Ingo Schmid <in...@gm...> wrote: >> >> Hi, >> >> I have not really read through the whole thread, I apologise if this does >> not apply to your problem then. >> >> I have moved most of the PDL stuff to perlbrew which allows a fairly >> system independent installation, it's berrybrew on windows, I don't own >> Macs. On linux, your distribution most probably provides it, I used apt to >> install the software itself. The best part about is, that system (perl) >> upgrades don't break your PDL installation. This allowed me to consistently >> run things cross platform with no troubles for a long time. >> >> Run >> >> > perlbrew install <perl version> >> > perlbrew install-cpanm >> > perlbrew install-patchperl >> >> It takes a fair amount of installation time and I guess disk space, >> defaults to your home. >> >> Please consult the perlbrew docs for the exact process, this is I think >> the most useful info: https://perlbrew.pl/Perlbrew-and-Friends.html. >> Once you are set, use >> >> > perlbrew switch ... >> >> > cpanm PDL::Graphics::Simple >> >> I guess you may need to install a few dependencies that are either >> ambiguous or simply missing using cpanm from the same shell. I don't >> remember if P:G:S comes with a default backend or if you need to, for >> example, install gnuplot. >> >> I hope this helps. >> >> Ingo >> >> On 8/31/23 10:12, ng...@gm... wrote: >> >> Hello, >> >> >> >> would anyone with a working version mind to post some hints on how to >> achieve: >> >> >> >> cpan PDL::Graphics::Simple >> pdl> use PDL::Graphics::Simple >> pdl> imag (sin(rvals(200,200)+1)) >> >> >> >> on no matter on which platform but with the least number of steps? >> >> >> >> Thanks a lot, Thomas >> >> >> >> On Wed, Aug 30, 2023 at 4:51 PM William Schmidt < >> t.w...@gm...> wrote: >> >> 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 <ng...@gm...> 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* >> cpan *graphics 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...@li... >> https://lists.sourceforge.net/lists/listinfo/pdl-devel >> >> >> >> _______________________________________________ >> >> pdl-devel mailing list >> >> pdl...@li... >> >> https://lists.sourceforge.net/lists/listinfo/pdl-devel >> >> _______________________________________________ >> pdl-devel mailing list >> pdl...@li... >> https://lists.sourceforge.net/lists/listinfo/pdl-devel >> >> >> >> >> > > > _______________________________________________ > pdl-devel mailing lis...@li...https://lists.sourceforge.net/lists/listinfo/pdl-devel > > _______________________________________________ > pdl-devel mailing list > pdl...@li... > https://lists.sourceforge.net/lists/listinfo/pdl-devel > |
From: Ingo S. <in...@gm...> - 2023-09-05 09:49:16
|
Dear Thomas and all, there'a misconception, I fear, about using perlbrew and sudo. Once you install the perbrew software (using sudo), the rest is in user space. Run perlbrew install , etc. as listed below and then simply continue with cpanm as user, no --sudo, which installs stuff in your $PERLBREW_ROOT folder. I hope this helps. Ingo If you use sudo, I think it will open a new shell (as root) with the system perl enabled. On 9/5/23 10:56, ng...@gm... wrote: > Here is my attempt to getting PDL to work in Ubuntu similar to an > already functional version in Arch, see logs below my personal > instructions. > > Has anyone encountered similar issues or knows a remedy? > > Thanks a lot, Thomas > > # begin of my docu > ############################################################ > > 1. perlbrew # needed, if system uses older perl version! > > > sudo apt -y install perlbrew > > perlbrew init # add to .profile, .bashrc > > perlbrew install perl-5.38.0 > > perlbrew install-cpanm > > perlbrew install-patchperl > > perlbrew switchperl-5.38.0 > > > 2. cpanm > > sudo apt install build-essential > > > https://stackoverflow.com/questions/35144752/cpanm-perlbrew-not-working-with-sudo > <https://stackoverflow.com/questions/35144752/cpanm-perlbrew-not-working-with-sudo> > > > cpanm --sudoTerm::ReadKey > > > sudo apt install libreadline-dev > > cpanm --sudoTerm::ReadLine::Gnu > > > # use gnuplot vs pgplot on macos! > > https://metacpan.org/pod/PDL::Graphics::Simple#SUPPORTED-GRAPHICS-ENGINES > <https://metacpan.org/pod/PDL::Graphics::Simple#SUPPORTED-GRAPHICS-ENGINES> > > > cpanm --sudo Alien::Gnuplot # first > > cpanm --sudo PDL::Graphics::Gnuplot # second > > cpanm --sudo PDL::Graphics::Simple # third, pops up > > # end of my docu > ############################################################ > > th6mas@x670:~$ cpanm --sudo Alien::Gnuplot > ... > ! Installing the dependencies failed: Module 'IO::Socket::SSL' is not > installed, Module 'Net::SSLeay' is not installed > ! Bailing out the installation for Alien-Gnuplot-1.042. > 18 distributions installed > > th6mas@x670:~$ cpanm --sudo IO::Socket::SSL > --> Working on IO::Socket::SSL > Fetching > http://www.cpan.org/authors/id/S/SU/SULLR/IO-Socket-SSL-2.083.tar.gz > ... OK > ==> Found dependencies: Net::SSLeay > --> Working on Net::SSLeay > Fetching > http://www.cpan.org/authors/id/C/CH/CHRISN/Net-SSLeay-1.92.tar.gz ... OK > Configuring Net-SSLeay-1.92 ... N/A > ! Configure failed for Net-SSLeay-1.92. See > /home/th6mas/.cpanm/work/1693903687.61645/build.log for details. > ! Installing the dependencies failed: Module 'Net::SSLeay' is not > installed > ! Bailing out the installation for IO-Socket-SSL-2.083. > > th6mas@x670:~$ cpanm --sudo Net::SSLeay > --> Working on Net::SSLeay > Fetching > http://www.cpan.org/authors/id/C/CH/CHRISN/Net-SSLeay-1.92.tar.gz ... OK > Configuring Net-SSLeay-1.92 ... N/A > ! Configure failed for Net-SSLeay-1.92. See > /home/th6mas/.cpanm/work/1693903705.61662/build.log for details. > > On Sat, Sep 2, 2023 at 12:47 AM Ed . <ej...@ho...> wrote: > > Hi Thomas, > > You will want to install Term::ReadKey and probably > Term::ReadLine::Gnu to have a nicer, more interactive perldl. I > don’t use pdl2 myself, but it did tell you what it needs to run if > you want to use it. > > Also, Alien::Gnuplot only installs (or checks for) actual gnuplot. > If you want the PDL interface to it, which PDL::Graphics::Simple > wraps around, you need to install PDL::Graphics::Gnuplot. This > would solve the thing PDL::Graphics::Simple was telling you: > “Sorry, all known plotting engines failed. Install one and try > again.” Please read > https://metacpan.org/pod/PDL::Graphics::Simple#SUPPORTED-GRAPHICS-ENGINES > > Best regards, > > Ed > > *From: *ng...@gm... > *Sent: *01 September 2023 18:10 > *To: *Ed . <mailto:ej...@ho...> > *Cc: *Ingo Schmid <mailto:in...@gm...>; > pdl...@li... > *Subject: *Re: [Pdl-devel] Debian 12 "-t experimental" install of PDL > > Hello Ed, > > as I understand, there a different options to get First Steps from > the PDL book to work. I have adopted the approach using > perlbrewand cpanmas they seem the most stable. > > > > Please find below the sequence of commands issued and the final > error messages under Ubuntu. I used the same approach on three > different Linux distributions (Debian, Ubuntu, Arch) with the same > result. > > Is there any chance to reproduce the problem and look into it? > > Thanks a lot, Thomas > > # idea: install PDL piggyback from CPAN under perlbrew > > perlbrew init # change prompt in .profile, .bashrc > > perlbrew install perl-5.38.0 > > perlbrew install-cpanm > > perlbrew install-patchperl > > perlbrew switch perl-5.38.0 > > cpanm Alien::Gnuplot # first ...OK > > cpanm PDL::Graphics::Simple # second ...OK > > Ubuntu: ~ $ pdl2 > > pdl2: Devel::REPL version 1.003011 not found, running > '/home/th6mas/perl5/perlbrew/perls/perl-5.38.0/bin/perldl' instead... > > perlDL shell v1.357 > > PDL comes with ABSOLUTELY NO WARRANTY. For details, see the file > > 'COPYING' in the PDL distribution. This is free software and you > > are welcome to redistribute it under certain conditions, see > > the same file for details. > > ReadLines, NiceSlice, MultiLines enabled > > Reading PDL/default.perldlrc... > > WARNING: Error loading PDL: 'Can't locate Term/ReadKey.pm in @INC > (you may need to install the Term::ReadKey module) (@INC entries > checked: > /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/lib/site_perl/5.38.0/x86_64-linux > /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/lib/site_perl/5.38.0 > /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/lib/5.38.0/x86_64-linux > /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/lib/5.38.0) at > /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/lib/site_perl/5.38.0/x86_64-linux/PDL/Doc/Perldl.pm > line 52. > > BEGIN failed--compilation aborted at > /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/lib/site_perl/5.38.0/x86_64-linux/PDL/Doc/Perldl.pm > line 52. > > Compilation failed in require at > /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/lib/site_perl/5.38.0/x86_64-linux/PDL/default.perldlrc > line 37. > > BEGIN failed--compilation aborted at > /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/lib/site_perl/5.38.0/x86_64-linux/PDL/default.perldlrc > line 37. > > Compilation failed in require at (eval 14) line 1. > > ' - trying blib. > > WARNING: PDL startup not found only plain perl available > > Note: AutoLoader not enabled ('use PDL::AutoLoader' recommended) > > perl> use PDL::Graphics::Simple > > Can't locate PDL/Graphics/PGPLOT/Window.pm in @INC (you may need > to install the PDL::Graphics::PGPLOT::Window module) (@INC entries > checked: > /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/lib/site_perl/5.38.0/x86_64-linux > /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/lib/site_perl/5.38.0 > /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/lib/5.38.0/x86_64-linux > /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/lib/5.38.0) at > /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/lib/site_perl/5.38.0/PDL/Graphics/Simple/PGPLOT.pm > line 28, <STDIN> line 1. > > perl> imag (sin(rvals(200,200)+1)) > > Sorry, all known plotting engines failed. Install one and try again. > > at > /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/lib/site_perl/5.38.0/PDL/Graphics/Simple.pm > line 434, <STDIN> line 2. > > PDL::Graphics::Simple::new("PDL::Graphics::Simple") called at > /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/lib/site_perl/5.38.0/PDL/Graphics/Simple.pm > line 389 > > PDL::Graphics::Simple::pgswin() called at > /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/lib/site_perl/5.38.0/PDL/Graphics/Simple.pm > line 1262 > > PDL::Graphics::Simple::_global_or_new() called at > /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/lib/site_perl/5.38.0/PDL/Graphics/Simple.pm > line 1151 > > PDL::Graphics::Simple::imag(PDL=SCALAR(0x563dd1c9aca0)) called at > (eval 50) line 1 > > eval 'imag (sin(rvals(200,200)+1)) > > ' called at (eval 36) line 6 > > main::eval_and_report("imag (sin(rvals(200,200)+1))\x{a}") called > at /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/bin/perldl line 618 > > main::process_input() called at > /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/bin/perldl line 638 > > eval {...} called at > /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/bin/perldl line 638 > > require /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/bin/perldl > called at /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/bin/pdl2 > line 27 > > main::BEGIN() called at > /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/bin/pdl2 line 33 > > eval {...} called at > /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/bin/pdl2 line 33 > > perl> quit > > On Fri, Sep 1, 2023 at 4:56 PM Ed . <ej...@ho...> wrote: > > Please just try with the latest (Perl 5.38, PDL 2.084), and > report any problems? > > Best regards, > > Ed > > *From: *ng...@gm... > *Sent: *31 August 2023 19:09 > *To: *Ingo Schmid <mailto:in...@gm...> > *Cc: *pdl...@li... > *Subject: *Re: [Pdl-devel] Debian 12 "-t experimental" install > of PDL > > Hello Ingo, > > much appreciate! Just to ask which perl version is most likely > to run the commands from the First Step PDL Book? > > @anyone: which perl version is known to work for that purpose? > > Thanks a lot, Thomas > > On Thu, Aug 31, 2023 at 11:00 AM Ingo Schmid <in...@gm...> > wrote: > > Hi, > > I have not really read through the whole thread, I > apologise if this does not apply to your problem then. > > I have moved most of the PDL stuff to perlbrew which > allows a fairly system independent installation, it's > berrybrew on windows, I don't own Macs. On linux, your > distribution most probably provides it, I used apt to > install the software itself. The best part about is, that > system (perl) upgrades don't break your PDL installation. > This allowed me to consistently run things cross platform > with no troubles for a long time. > > Run > > > perlbrew install <perl version> > > perlbrew install-cpanm > > perlbrew install-patchperl > > It takes a fair amount of installation time and I guess > disk space, defaults to your home. > > Please consult the perlbrew docs for the exact process, > this is I think the most useful info: > https://perlbrew.pl/Perlbrew-and-Friends.html. Once you > are set, use > > > perlbrew switch ... > > > cpanm PDL::Graphics::Simple > > I guess you may need to install a few dependencies that > are either ambiguous or simply missing using cpanm from > the same shell. I don't remember if P:G:S comes with a > default backend or if you need to, for example, install > gnuplot. > > I hope this helps. > > Ingo > > On 8/31/23 10:12, ng...@gm... wrote: > > Hello, > > would anyone with a working version mind to post some > hints on how to achieve: > > cpan PDL::Graphics::Simple > pdl> use PDL::Graphics::Simple > pdl> imag (sin(rvals(200,200)+1)) > > on no matter on which platform but with the least > number of steps? > > Thanks a lot, Thomas > > On Wed, Aug 30, 2023 at 4:51 PM William Schmidt > <t.w...@gm...> wrote: > > 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 <ng...@gm...> > 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* > > > cpan > > > /graphics 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 > <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...@li... > https://lists.sourceforge.net/lists/listinfo/pdl-devel > > > > _______________________________________________ > > pdl-devel mailing list > > pdl...@li... > > https://lists.sourceforge.net/lists/listinfo/pdl-devel > > _______________________________________________ > pdl-devel mailing list > pdl...@li... > https://lists.sourceforge.net/lists/listinfo/pdl-devel > > > > _______________________________________________ > pdl-devel mailing list > pdl...@li... > https://lists.sourceforge.net/lists/listinfo/pdl-devel |
From: <ng...@gm...> - 2023-09-05 09:36:03
|
Yes, it does, see below. Unfortunately, sudo apt install libssl-dev does not solve it. I guess, it is all about: *** Be sure to use the same compiler and options to compile your OpenSSL, perl, and Net::SSLeay. Mixing and matching compilers is not supported. How best to proceed? Thanks a lot, Thomas th6mas@x670:~$ cat /home/th6mas/.cpanm/work/1693903705.61662/build.log cpanm (App::cpanminus) 1.7047 on perl 5.038000 built for x86_64-linux Work directory is /home/th6mas/.cpanm/work/1693903705.61662 You have make /usr/bin/make You have /usr/bin/wget You have /usr/bin/tar: tar (GNU tar) 1.34 Copyright (C) 2021 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later < https://gnu.org/licenses/gpl.html>. This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Written by John Gilmore and Jay Fenlason. You have /usr/bin/unzip Searching Net::SSLeay () on cpanmetadb ... --> Working on Net::SSLeay Fetching http://www.cpan.org/authors/id/C/CH/CHRISN/Net-SSLeay-1.92.tar.gz -> OK Unpacking Net-SSLeay-1.92.tar.gz Entering Net-SSLeay-1.92 Checking configure dependencies from META.json Checking if you have File::Spec::Functions 0 ... Yes (3.88) Checking if you have ExtUtils::MakeMaker 6.58 ... Yes (7.70) Checking if you have Text::Wrap 0 ... Yes (2021.0814) Checking if you have English 0 ... Yes (1.11) Checking if you have constant 0 ... Yes (1.33) Configuring Net-SSLeay-1.92 Running Makefile.PL Do you want to run external tests? These tests *will* *fail* if you do not have network connectivity. [n] n *** Be sure to use the same compiler and options to compile your OpenSSL, perl, and Net::SSLeay. Mixing and matching compilers is not supported. ****************************************************************************** * COULD NOT FIND LIBSSL HEADERS * * * * The libssl header files are required to build Net-SSLeay, but they are * * missing from /usr. They would typically reside in /usr/include/openssl. * * * * If you are using the version of OpenSSL/LibreSSL packaged by your Linux * * distribution, you may need to install the corresponding "development" * * package via your package manager (e.g. libssl-dev for OpenSSL on Debian * * and Ubuntu, or openssl-devel for OpenSSL on Red Hat Enterprise Linux and * * Fedora). * ****************************************************************************** -> N/A -> FAIL Configure failed for Net-SSLeay-1.92. See /home/th6mas/.cpanm/work/1693903705.61662/build.log for details. On Tue, Sep 5, 2023 at 11:14 AM Ed . <ej...@ho...> wrote: > Does the build log for Net::SSLeay add any info? > > Best regards, > Ed > ------------------------------ > *From:* ng...@gm... <ng...@gm...> > *Sent:* Tuesday, September 5, 2023 8:56 AM > *To:* Ed . <ej...@ho...> > *Cc:* pdl...@li... <pdl...@li...> > *Subject:* Re: [Pdl-devel] Debian 12 "-t experimental" install of PDL > > Here is my attempt to getting PDL to work in Ubuntu similar to an already > functional version in Arch, see logs below my personal instructions. > > Has anyone encountered similar issues or knows a remedy? > > Thanks a lot, Thomas > > # begin of my docu > ############################################################ > > 1. perlbrew # needed, if system uses older perl version! > > sudo apt -y install perlbrew > > perlbrew init # add to .profile, .bashrc > > perlbrew install perl-5.38.0 > > perlbrew install-cpanm > > perlbrew install-patchperl > > perlbrew switch perl-5.38.0 > > 2. cpanm > > sudo apt install build-essential > > > https://stackoverflow.com/questions/35144752/cpanm-perlbrew-not-working-with-sudo > > cpanm --sudo Term::ReadKey > > sudo apt install libreadline-dev > > cpanm --sudo Term::ReadLine::Gnu > > # use gnuplot vs pgplot on macos! > > https://metacpan.org/pod/PDL::Graphics::Simple#SUPPORTED-GRAPHICS-ENGINES > > cpanm --sudo Alien::Gnuplot # first > > cpanm --sudo PDL::Graphics::Gnuplot # second > > cpanm --sudo PDL::Graphics::Simple # third, pops up > # end of my docu > ############################################################ > > th6mas@x670:~$ cpanm --sudo Alien::Gnuplot > ... > ! Installing the dependencies failed: Module 'IO::Socket::SSL' is not > installed, Module 'Net::SSLeay' is not installed > ! Bailing out the installation for Alien-Gnuplot-1.042. > 18 distributions installed > > th6mas@x670:~$ cpanm --sudo IO::Socket::SSL > --> Working on IO::Socket::SSL > Fetching > http://www.cpan.org/authors/id/S/SU/SULLR/IO-Socket-SSL-2.083.tar.gz ... > OK > ==> Found dependencies: Net::SSLeay > --> Working on Net::SSLeay > Fetching http://www.cpan.org/authors/id/C/CH/CHRISN/Net-SSLeay-1.92.tar.gz > ... OK > Configuring Net-SSLeay-1.92 ... N/A > ! Configure failed for Net-SSLeay-1.92. See > /home/th6mas/.cpanm/work/1693903687.61645/build.log for details. > ! Installing the dependencies failed: Module 'Net::SSLeay' is not installed > ! Bailing out the installation for IO-Socket-SSL-2.083. > > th6mas@x670:~$ cpanm --sudo Net::SSLeay > --> Working on Net::SSLeay > Fetching http://www.cpan.org/authors/id/C/CH/CHRISN/Net-SSLeay-1.92.tar.gz > ... OK > Configuring Net-SSLeay-1.92 ... N/A > ! Configure failed for Net-SSLeay-1.92. See > /home/th6mas/.cpanm/work/1693903705.61662/build.log for details. > > On Sat, Sep 2, 2023 at 12:47 AM Ed . <ej...@ho...> wrote: > > Hi Thomas, > > > > You will want to install Term::ReadKey and probably Term::ReadLine::Gnu to > have a nicer, more interactive perldl. I don’t use pdl2 myself, but it did > tell you what it needs to run if you want to use it. > > > > Also, Alien::Gnuplot only installs (or checks for) actual gnuplot. If you > want the PDL interface to it, which PDL::Graphics::Simple wraps around, you > need to install PDL::Graphics::Gnuplot. This would solve the thing > PDL::Graphics::Simple was telling you: “Sorry, all known plotting engines > failed. Install one and try again.” Please read > https://metacpan.org/pod/PDL::Graphics::Simple#SUPPORTED-GRAPHICS-ENGINES > > > > Best regards, > > Ed > > > > *From: *ng...@gm... > *Sent: *01 September 2023 18:10 > *To: *Ed . <ej...@ho...> > *Cc: *Ingo Schmid <in...@gm...>; pdl...@li... > *Subject: *Re: [Pdl-devel] Debian 12 "-t experimental" install of PDL > > > > Hello Ed, > > > > as I understand, there a different options to get First Steps from the PDL > book to work. I have adopted the approach using perlbrew and cpanm as > they seem the most stable. > > > > Please find below the sequence of commands issued and the final error > messages under Ubuntu. I used the same approach on three different Linux > distributions (Debian, Ubuntu, Arch) with the same result. > > > > Is there any chance to reproduce the problem and look into it? > > > > Thanks a lot, Thomas > > > > # idea: install PDL piggyback from CPAN under perlbrew > > > > perlbrew init # change prompt in .profile, .bashrc > > perlbrew install perl-5.38.0 > > perlbrew install-cpanm > > perlbrew install-patchperl > > perlbrew switch perl-5.38.0 > > > > cpanm Alien::Gnuplot # first ...OK > > cpanm PDL::Graphics::Simple # second ...OK > > > > Ubuntu: ~ $ pdl2 > > pdl2: Devel::REPL version 1.003011 not found, running > '/home/th6mas/perl5/perlbrew/perls/perl-5.38.0/bin/perldl' instead... > > perlDL shell v1.357 > > PDL comes with ABSOLUTELY NO WARRANTY. For details, see the file > > 'COPYING' in the PDL distribution. This is free software and you > > are welcome to redistribute it under certain conditions, see > > the same file for details. > > ReadLines, NiceSlice, MultiLines enabled > > Reading PDL/default.perldlrc... > > WARNING: Error loading PDL: 'Can't locate Term/ReadKey.pm in @INC (you may > need to install the Term::ReadKey module) (@INC entries checked: > /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/lib/site_perl/5.38.0/x86_64-linux > /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/lib/site_perl/5.38.0 > /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/lib/5.38.0/x86_64-linux > /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/lib/5.38.0) at > /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/lib/site_perl/5.38.0/x86_64-linux/PDL/Doc/Perldl.pm > line 52. > > BEGIN failed--compilation aborted at > /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/lib/site_perl/5.38.0/x86_64-linux/PDL/Doc/Perldl.pm > line 52. > > Compilation failed in require at > /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/lib/site_perl/5.38.0/x86_64-linux/PDL/default.perldlrc > line 37. > > BEGIN failed--compilation aborted at > /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/lib/site_perl/5.38.0/x86_64-linux/PDL/default.perldlrc > line 37. > > Compilation failed in require at (eval 14) line 1. > > ' - trying blib. > > WARNING: PDL startup not found only plain perl available > > > > Note: AutoLoader not enabled ('use PDL::AutoLoader' recommended) > > > > perl> use PDL::Graphics::Simple > > Can't locate PDL/Graphics/PGPLOT/Window.pm in @INC (you may need to > install the PDL::Graphics::PGPLOT::Window module) (@INC entries checked: > /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/lib/site_perl/5.38.0/x86_64-linux > /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/lib/site_perl/5.38.0 > /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/lib/5.38.0/x86_64-linux > /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/lib/5.38.0) at > /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/lib/site_perl/5.38.0/PDL/Graphics/Simple/PGPLOT.pm > line 28, <STDIN> line 1. > > > > perl> imag (sin(rvals(200,200)+1)) > > Sorry, all known plotting engines failed. Install one and try again. > > at > /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/lib/site_perl/5.38.0/PDL/Graphics/Simple.pm > line 434, <STDIN> line 2. > > PDL::Graphics::Simple::new("PDL::Graphics::Simple") called at > /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/lib/site_perl/5.38.0/PDL/Graphics/Simple.pm > line 389 > > PDL::Graphics::Simple::pgswin() called at > /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/lib/site_perl/5.38.0/PDL/Graphics/Simple.pm > line 1262 > > PDL::Graphics::Simple::_global_or_new() called at > /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/lib/site_perl/5.38.0/PDL/Graphics/Simple.pm > line 1151 > > PDL::Graphics::Simple::imag(PDL=SCALAR(0x563dd1c9aca0)) called at (eval > 50) line 1 > > eval 'imag (sin(rvals(200,200)+1)) > > ' called at (eval 36) line 6 > > main::eval_and_report("imag (sin(rvals(200,200)+1))\x{a}") called at > /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/bin/perldl line 618 > > main::process_input() called at > /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/bin/perldl line 638 > > eval {...} called at > /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/bin/perldl line 638 > > require /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/bin/perldl called at > /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/bin/pdl2 line 27 > > main::BEGIN() called at > /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/bin/pdl2 line 33 > > eval {...} called at > /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/bin/pdl2 line 33 > > > > perl> quit > > > > > > On Fri, Sep 1, 2023 at 4:56 PM Ed . <ej...@ho...> wrote: > > Please just try with the latest (Perl 5.38, PDL 2.084), and report any > problems? > > > > Best regards, > > Ed > > > > *From: *ng...@gm... > *Sent: *31 August 2023 19:09 > *To: *Ingo Schmid <in...@gm...> > *Cc: *pdl...@li... > *Subject: *Re: [Pdl-devel] Debian 12 "-t experimental" install of PDL > > > > Hello Ingo, > > > > much appreciate! Just to ask which perl version is most likely to run the > commands from the First Step PDL Book? > > > > @anyone: which perl version is known to work for that purpose? > > > > Thanks a lot, Thomas > > > > On Thu, Aug 31, 2023 at 11:00 AM Ingo Schmid <in...@gm...> wrote: > > Hi, > > I have not really read through the whole thread, I apologise if this does > not apply to your problem then. > > I have moved most of the PDL stuff to perlbrew which allows a fairly > system independent installation, it's berrybrew on windows, I don't own > Macs. On linux, your distribution most probably provides it, I used apt to > install the software itself. The best part about is, that system (perl) > upgrades don't break your PDL installation. This allowed me to consistently > run things cross platform with no troubles for a long time. > > Run > > > perlbrew install <perl version> > > perlbrew install-cpanm > > perlbrew install-patchperl > > It takes a fair amount of installation time and I guess disk space, > defaults to your home. > > Please consult the perlbrew docs for the exact process, this is I think > the most useful info: https://perlbrew.pl/Perlbrew-and-Friends.html. Once > you are set, use > > > perlbrew switch ... > > > cpanm PDL::Graphics::Simple > > I guess you may need to install a few dependencies that are either > ambiguous or simply missing using cpanm from the same shell. I don't > remember if P:G:S comes with a default backend or if you need to, for > example, install gnuplot. > > I hope this helps. > > Ingo > > On 8/31/23 10:12, ng...@gm... wrote: > > Hello, > > > > would anyone with a working version mind to post some hints on how to > achieve: > > > > cpan PDL::Graphics::Simple > pdl> use PDL::Graphics::Simple > pdl> imag (sin(rvals(200,200)+1)) > > > > on no matter on which platform but with the least number of steps? > > > > Thanks a lot, Thomas > > > > On Wed, Aug 30, 2023 at 4:51 PM William Schmidt < > t.w...@gm...> wrote: > > 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 <ng...@gm...> 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* > cpan *graphics 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...@li... > https://lists.sourceforge.net/lists/listinfo/pdl-devel > > > > _______________________________________________ > > pdl-devel mailing list > > pdl...@li... > > https://lists.sourceforge.net/lists/listinfo/pdl-devel > > _______________________________________________ > pdl-devel mailing list > pdl...@li... > https://lists.sourceforge.net/lists/listinfo/pdl-devel > > > > > > |
From: Ed . <ej...@ho...> - 2023-09-05 09:14:26
|
Does the build log for Net::SSLeay add any info? Best regards, Ed ________________________________ From: ng...@gm... <ng...@gm...> Sent: Tuesday, September 5, 2023 8:56 AM To: Ed . <ej...@ho...> Cc: pdl...@li... <pdl...@li...> Subject: Re: [Pdl-devel] Debian 12 "-t experimental" install of PDL Here is my attempt to getting PDL to work in Ubuntu similar to an already functional version in Arch, see logs below my personal instructions. Has anyone encountered similar issues or knows a remedy? Thanks a lot, Thomas # begin of my docu ############################################################ 1. perlbrew # needed, if system uses older perl version! sudo apt -y install perlbrew perlbrew init # add to .profile, .bashrc perlbrew install perl-5.38.0 perlbrew install-cpanm perlbrew install-patchperl perlbrew switch perl-5.38.0 2. cpanm sudo apt install build-essential https://stackoverflow.com/questions/35144752/cpanm-perlbrew-not-working-with-sudo cpanm --sudo Term::ReadKey sudo apt install libreadline-dev cpanm --sudo Term::ReadLine::Gnu # use gnuplot vs pgplot on macos! https://metacpan.org/pod/PDL::Graphics::Simple#SUPPORTED-GRAPHICS-ENGINES cpanm --sudo Alien::Gnuplot # first cpanm --sudo PDL::Graphics::Gnuplot # second cpanm --sudo PDL::Graphics::Simple # third, pops up # end of my docu ############################################################ th6mas@x670:~$ cpanm --sudo Alien::Gnuplot ... ! Installing the dependencies failed: Module 'IO::Socket::SSL' is not installed, Module 'Net::SSLeay' is not installed ! Bailing out the installation for Alien-Gnuplot-1.042. 18 distributions installed th6mas@x670:~$ cpanm --sudo IO::Socket::SSL --> Working on IO::Socket::SSL Fetching http://www.cpan.org/authors/id/S/SU/SULLR/IO-Socket-SSL-2.083.tar.gz ... OK ==> Found dependencies: Net::SSLeay --> Working on Net::SSLeay Fetching http://www.cpan.org/authors/id/C/CH/CHRISN/Net-SSLeay-1.92.tar.gz ... OK Configuring Net-SSLeay-1.92 ... N/A ! Configure failed for Net-SSLeay-1.92. See /home/th6mas/.cpanm/work/1693903687.61645/build.log for details. ! Installing the dependencies failed: Module 'Net::SSLeay' is not installed ! Bailing out the installation for IO-Socket-SSL-2.083. th6mas@x670:~$ cpanm --sudo Net::SSLeay --> Working on Net::SSLeay Fetching http://www.cpan.org/authors/id/C/CH/CHRISN/Net-SSLeay-1.92.tar.gz ... OK Configuring Net-SSLeay-1.92 ... N/A ! Configure failed for Net-SSLeay-1.92. See /home/th6mas/.cpanm/work/1693903705.61662/build.log for details. On Sat, Sep 2, 2023 at 12:47 AM Ed . <ej...@ho...<mailto:ej...@ho...>> wrote: Hi Thomas, You will want to install Term::ReadKey and probably Term::ReadLine::Gnu to have a nicer, more interactive perldl. I don’t use pdl2 myself, but it did tell you what it needs to run if you want to use it. Also, Alien::Gnuplot only installs (or checks for) actual gnuplot. If you want the PDL interface to it, which PDL::Graphics::Simple wraps around, you need to install PDL::Graphics::Gnuplot. This would solve the thing PDL::Graphics::Simple was telling you: “Sorry, all known plotting engines failed. Install one and try again.” Please read https://metacpan.org/pod/PDL::Graphics::Simple#SUPPORTED-GRAPHICS-ENGINES Best regards, Ed From: ng...@gm...<mailto:ng...@gm...> Sent: 01 September 2023 18:10 To: Ed .<mailto:ej...@ho...> Cc: Ingo Schmid<mailto:in...@gm...>; pdl...@li...<mailto:pdl...@li...> Subject: Re: [Pdl-devel] Debian 12 "-t experimental" install of PDL Hello Ed, as I understand, there a different options to get First Steps from the PDL book to work. I have adopted the approach using perlbrew and cpanm as they seem the most stable. Please find below the sequence of commands issued and the final error messages under Ubuntu. I used the same approach on three different Linux distributions (Debian, Ubuntu, Arch) with the same result. Is there any chance to reproduce the problem and look into it? Thanks a lot, Thomas # idea: install PDL piggyback from CPAN under perlbrew perlbrew init # change prompt in .profile, .bashrc perlbrew install perl-5.38.0 perlbrew install-cpanm perlbrew install-patchperl perlbrew switch perl-5.38.0 cpanm Alien::Gnuplot # first ...OK cpanm PDL::Graphics::Simple # second ...OK Ubuntu: ~ $ pdl2 pdl2: Devel::REPL version 1.003011 not found, running '/home/th6mas/perl5/perlbrew/perls/perl-5.38.0/bin/perldl' instead... perlDL shell v1.357 PDL comes with ABSOLUTELY NO WARRANTY. For details, see the file 'COPYING' in the PDL distribution. This is free software and you are welcome to redistribute it under certain conditions, see the same file for details. ReadLines, NiceSlice, MultiLines enabled Reading PDL/default.perldlrc... WARNING: Error loading PDL: 'Can't locate Term/ReadKey.pm in @INC (you may need to install the Term::ReadKey module) (@INC entries checked: /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/lib/site_perl/5.38.0/x86_64-linux /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/lib/site_perl/5.38.0 /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/lib/5.38.0/x86_64-linux /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/lib/5.38.0) at /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/lib/site_perl/5.38.0/x86_64-linux/PDL/Doc/Perldl.pm line 52. BEGIN failed--compilation aborted at /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/lib/site_perl/5.38.0/x86_64-linux/PDL/Doc/Perldl.pm line 52. Compilation failed in require at /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/lib/site_perl/5.38.0/x86_64-linux/PDL/default.perldlrc line 37. BEGIN failed--compilation aborted at /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/lib/site_perl/5.38.0/x86_64-linux/PDL/default.perldlrc line 37. Compilation failed in require at (eval 14) line 1. ' - trying blib. WARNING: PDL startup not found only plain perl available Note: AutoLoader not enabled ('use PDL::AutoLoader' recommended) perl> use PDL::Graphics::Simple Can't locate PDL/Graphics/PGPLOT/Window.pm in @INC (you may need to install the PDL::Graphics::PGPLOT::Window module) (@INC entries checked: /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/lib/site_perl/5.38.0/x86_64-linux /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/lib/site_perl/5.38.0 /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/lib/5.38.0/x86_64-linux /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/lib/5.38.0) at /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/lib/site_perl/5.38.0/PDL/Graphics/Simple/PGPLOT.pm line 28, <STDIN> line 1. perl> imag (sin(rvals(200,200)+1)) Sorry, all known plotting engines failed. Install one and try again. at /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/lib/site_perl/5.38.0/PDL/Graphics/Simple.pm line 434, <STDIN> line 2. PDL::Graphics::Simple::new("PDL::Graphics::Simple") called at /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/lib/site_perl/5.38.0/PDL/Graphics/Simple.pm line 389 PDL::Graphics::Simple::pgswin() called at /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/lib/site_perl/5.38.0/PDL/Graphics/Simple.pm line 1262 PDL::Graphics::Simple::_global_or_new() called at /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/lib/site_perl/5.38.0/PDL/Graphics/Simple.pm line 1151 PDL::Graphics::Simple::imag(PDL=SCALAR(0x563dd1c9aca0)) called at (eval 50) line 1 eval 'imag (sin(rvals(200,200)+1)) ' called at (eval 36) line 6 main::eval_and_report("imag (sin(rvals(200,200)+1))\x{a}") called at /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/bin/perldl line 618 main::process_input() called at /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/bin/perldl line 638 eval {...} called at /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/bin/perldl line 638 require /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/bin/perldl called at /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/bin/pdl2 line 27 main::BEGIN() called at /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/bin/pdl2 line 33 eval {...} called at /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/bin/pdl2 line 33 perl> quit On Fri, Sep 1, 2023 at 4:56 PM Ed . <ej...@ho...<mailto:ej...@ho...>> wrote: Please just try with the latest (Perl 5.38, PDL 2.084), and report any problems? Best regards, Ed From: ng...@gm...<mailto:ng...@gm...> Sent: 31 August 2023 19:09 To: Ingo Schmid<mailto:in...@gm...> Cc: pdl...@li...<mailto:pdl...@li...> Subject: Re: [Pdl-devel] Debian 12 "-t experimental" install of PDL Hello Ingo, much appreciate! Just to ask which perl version is most likely to run the commands from the First Step PDL Book? @anyone: which perl version is known to work for that purpose? Thanks a lot, Thomas On Thu, Aug 31, 2023 at 11:00 AM Ingo Schmid <in...@gm...<mailto:in...@gm...>> wrote: Hi, I have not really read through the whole thread, I apologise if this does not apply to your problem then. I have moved most of the PDL stuff to perlbrew which allows a fairly system independent installation, it's berrybrew on windows, I don't own Macs. On linux, your distribution most probably provides it, I used apt to install the software itself. The best part about is, that system (perl) upgrades don't break your PDL installation. This allowed me to consistently run things cross platform with no troubles for a long time. Run > perlbrew install <perl version> > perlbrew install-cpanm > perlbrew install-patchperl It takes a fair amount of installation time and I guess disk space, defaults to your home. Please consult the perlbrew docs for the exact process, this is I think the most useful info: https://perlbrew.pl/Perlbrew-and-Friends.html. Once you are set, use > perlbrew switch ... > cpanm PDL::Graphics::Simple I guess you may need to install a few dependencies that are either ambiguous or simply missing using cpanm from the same shell. I don't remember if P:G:S comes with a default backend or if you need to, for example, install gnuplot. I hope this helps. Ingo On 8/31/23 10:12, ng...@gm...<mailto:ng...@gm...> wrote: Hello, would anyone with a working version mind to post some hints on how to achieve: cpan PDL::Graphics::Simple pdl> use PDL::Graphics::Simple pdl> imag (sin(rvals(200,200)+1)) on no matter on which platform but with the least number of steps? Thanks a lot, Thomas On Wed, Aug 30, 2023 at 4:51 PM William Schmidt <t.w...@gm...<mailto:t.w...@gm...>> wrote: 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 <ng...@gm...<mailto:ng...@gm...>> 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 cpan graphics 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...@li...<mailto:pdl...@li...> https://lists.sourceforge.net/lists/listinfo/pdl-devel _______________________________________________ pdl-devel mailing list pdl...@li...<mailto:pdl...@li...> https://lists.sourceforge.net/lists/listinfo/pdl-devel _______________________________________________ pdl-devel mailing list pdl...@li...<mailto:pdl...@li...> https://lists.sourceforge.net/lists/listinfo/pdl-devel |
From: <ng...@gm...> - 2023-09-05 08:57:18
|
Here is my attempt to getting PDL to work in Ubuntu similar to an already functional version in Arch, see logs below my personal instructions. Has anyone encountered similar issues or knows a remedy? Thanks a lot, Thomas # begin of my docu ############################################################ 1. perlbrew # needed, if system uses older perl version! sudo apt -y install perlbrew perlbrew init # add to .profile, .bashrc perlbrew install perl-5.38.0 perlbrew install-cpanm perlbrew install-patchperl perlbrew switch perl-5.38.0 2. cpanm sudo apt install build-essential https://stackoverflow.com/questions/35144752/cpanm-perlbrew-not-working-with-sudo cpanm --sudo Term::ReadKey sudo apt install libreadline-dev cpanm --sudo Term::ReadLine::Gnu # use gnuplot vs pgplot on macos! https://metacpan.org/pod/PDL::Graphics::Simple#SUPPORTED-GRAPHICS-ENGINES cpanm --sudo Alien::Gnuplot # first cpanm --sudo PDL::Graphics::Gnuplot # second cpanm --sudo PDL::Graphics::Simple # third, pops up # end of my docu ############################################################ th6mas@x670:~$ cpanm --sudo Alien::Gnuplot ... ! Installing the dependencies failed: Module 'IO::Socket::SSL' is not installed, Module 'Net::SSLeay' is not installed ! Bailing out the installation for Alien-Gnuplot-1.042. 18 distributions installed th6mas@x670:~$ cpanm --sudo IO::Socket::SSL --> Working on IO::Socket::SSL Fetching http://www.cpan.org/authors/id/S/SU/SULLR/IO-Socket-SSL-2.083.tar.gz ... OK ==> Found dependencies: Net::SSLeay --> Working on Net::SSLeay Fetching http://www.cpan.org/authors/id/C/CH/CHRISN/Net-SSLeay-1.92.tar.gz ... OK Configuring Net-SSLeay-1.92 ... N/A ! Configure failed for Net-SSLeay-1.92. See /home/th6mas/.cpanm/work/1693903687.61645/build.log for details. ! Installing the dependencies failed: Module 'Net::SSLeay' is not installed ! Bailing out the installation for IO-Socket-SSL-2.083. th6mas@x670:~$ cpanm --sudo Net::SSLeay --> Working on Net::SSLeay Fetching http://www.cpan.org/authors/id/C/CH/CHRISN/Net-SSLeay-1.92.tar.gz ... OK Configuring Net-SSLeay-1.92 ... N/A ! Configure failed for Net-SSLeay-1.92. See /home/th6mas/.cpanm/work/1693903705.61662/build.log for details. On Sat, Sep 2, 2023 at 12:47 AM Ed . <ej...@ho...> wrote: > Hi Thomas, > > > > You will want to install Term::ReadKey and probably Term::ReadLine::Gnu to > have a nicer, more interactive perldl. I don’t use pdl2 myself, but it did > tell you what it needs to run if you want to use it. > > > > Also, Alien::Gnuplot only installs (or checks for) actual gnuplot. If you > want the PDL interface to it, which PDL::Graphics::Simple wraps around, you > need to install PDL::Graphics::Gnuplot. This would solve the thing > PDL::Graphics::Simple was telling you: “Sorry, all known plotting engines > failed. Install one and try again.” Please read > https://metacpan.org/pod/PDL::Graphics::Simple#SUPPORTED-GRAPHICS-ENGINES > > > > Best regards, > > Ed > > > > *From: *ng...@gm... > *Sent: *01 September 2023 18:10 > *To: *Ed . <ej...@ho...> > *Cc: *Ingo Schmid <in...@gm...>; pdl...@li... > *Subject: *Re: [Pdl-devel] Debian 12 "-t experimental" install of PDL > > > > Hello Ed, > > > > as I understand, there a different options to get First Steps from the PDL > book to work. I have adopted the approach using perlbrew and cpanm as > they seem the most stable. > > > > Please find below the sequence of commands issued and the final error > messages under Ubuntu. I used the same approach on three different Linux > distributions (Debian, Ubuntu, Arch) with the same result. > > > > Is there any chance to reproduce the problem and look into it? > > > > Thanks a lot, Thomas > > > > # idea: install PDL piggyback from CPAN under perlbrew > > > > perlbrew init # change prompt in .profile, .bashrc > > perlbrew install perl-5.38.0 > > perlbrew install-cpanm > > perlbrew install-patchperl > > perlbrew switch perl-5.38.0 > > > > cpanm Alien::Gnuplot # first ...OK > > cpanm PDL::Graphics::Simple # second ...OK > > > > Ubuntu: ~ $ pdl2 > > pdl2: Devel::REPL version 1.003011 not found, running > '/home/th6mas/perl5/perlbrew/perls/perl-5.38.0/bin/perldl' instead... > > perlDL shell v1.357 > > PDL comes with ABSOLUTELY NO WARRANTY. For details, see the file > > 'COPYING' in the PDL distribution. This is free software and you > > are welcome to redistribute it under certain conditions, see > > the same file for details. > > ReadLines, NiceSlice, MultiLines enabled > > Reading PDL/default.perldlrc... > > WARNING: Error loading PDL: 'Can't locate Term/ReadKey.pm in @INC (you may > need to install the Term::ReadKey module) (@INC entries checked: > /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/lib/site_perl/5.38.0/x86_64-linux > /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/lib/site_perl/5.38.0 > /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/lib/5.38.0/x86_64-linux > /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/lib/5.38.0) at > /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/lib/site_perl/5.38.0/x86_64-linux/PDL/Doc/Perldl.pm > line 52. > > BEGIN failed--compilation aborted at > /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/lib/site_perl/5.38.0/x86_64-linux/PDL/Doc/Perldl.pm > line 52. > > Compilation failed in require at > /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/lib/site_perl/5.38.0/x86_64-linux/PDL/default.perldlrc > line 37. > > BEGIN failed--compilation aborted at > /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/lib/site_perl/5.38.0/x86_64-linux/PDL/default.perldlrc > line 37. > > Compilation failed in require at (eval 14) line 1. > > ' - trying blib. > > WARNING: PDL startup not found only plain perl available > > > > Note: AutoLoader not enabled ('use PDL::AutoLoader' recommended) > > > > perl> use PDL::Graphics::Simple > > Can't locate PDL/Graphics/PGPLOT/Window.pm in @INC (you may need to > install the PDL::Graphics::PGPLOT::Window module) (@INC entries checked: > /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/lib/site_perl/5.38.0/x86_64-linux > /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/lib/site_perl/5.38.0 > /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/lib/5.38.0/x86_64-linux > /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/lib/5.38.0) at > /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/lib/site_perl/5.38.0/PDL/Graphics/Simple/PGPLOT.pm > line 28, <STDIN> line 1. > > > > perl> imag (sin(rvals(200,200)+1)) > > Sorry, all known plotting engines failed. Install one and try again. > > at > /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/lib/site_perl/5.38.0/PDL/Graphics/Simple.pm > line 434, <STDIN> line 2. > > PDL::Graphics::Simple::new("PDL::Graphics::Simple") called at > /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/lib/site_perl/5.38.0/PDL/Graphics/Simple.pm > line 389 > > PDL::Graphics::Simple::pgswin() called at > /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/lib/site_perl/5.38.0/PDL/Graphics/Simple.pm > line 1262 > > PDL::Graphics::Simple::_global_or_new() called at > /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/lib/site_perl/5.38.0/PDL/Graphics/Simple.pm > line 1151 > > PDL::Graphics::Simple::imag(PDL=SCALAR(0x563dd1c9aca0)) called at (eval > 50) line 1 > > eval 'imag (sin(rvals(200,200)+1)) > > ' called at (eval 36) line 6 > > main::eval_and_report("imag (sin(rvals(200,200)+1))\x{a}") called at > /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/bin/perldl line 618 > > main::process_input() called at > /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/bin/perldl line 638 > > eval {...} called at > /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/bin/perldl line 638 > > require /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/bin/perldl called at > /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/bin/pdl2 line 27 > > main::BEGIN() called at > /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/bin/pdl2 line 33 > > eval {...} called at > /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/bin/pdl2 line 33 > > > > perl> quit > > > > > > On Fri, Sep 1, 2023 at 4:56 PM Ed . <ej...@ho...> wrote: > > Please just try with the latest (Perl 5.38, PDL 2.084), and report any > problems? > > > > Best regards, > > Ed > > > > *From: *ng...@gm... > *Sent: *31 August 2023 19:09 > *To: *Ingo Schmid <in...@gm...> > *Cc: *pdl...@li... > *Subject: *Re: [Pdl-devel] Debian 12 "-t experimental" install of PDL > > > > Hello Ingo, > > > > much appreciate! Just to ask which perl version is most likely to run the > commands from the First Step PDL Book? > > > > @anyone: which perl version is known to work for that purpose? > > > > Thanks a lot, Thomas > > > > On Thu, Aug 31, 2023 at 11:00 AM Ingo Schmid <in...@gm...> wrote: > > Hi, > > I have not really read through the whole thread, I apologise if this does > not apply to your problem then. > > I have moved most of the PDL stuff to perlbrew which allows a fairly > system independent installation, it's berrybrew on windows, I don't own > Macs. On linux, your distribution most probably provides it, I used apt to > install the software itself. The best part about is, that system (perl) > upgrades don't break your PDL installation. This allowed me to consistently > run things cross platform with no troubles for a long time. > > Run > > > perlbrew install <perl version> > > perlbrew install-cpanm > > perlbrew install-patchperl > > It takes a fair amount of installation time and I guess disk space, > defaults to your home. > > Please consult the perlbrew docs for the exact process, this is I think > the most useful info: https://perlbrew.pl/Perlbrew-and-Friends.html. Once > you are set, use > > > perlbrew switch ... > > > cpanm PDL::Graphics::Simple > > I guess you may need to install a few dependencies that are either > ambiguous or simply missing using cpanm from the same shell. I don't > remember if P:G:S comes with a default backend or if you need to, for > example, install gnuplot. > > I hope this helps. > > Ingo > > On 8/31/23 10:12, ng...@gm... wrote: > > Hello, > > > > would anyone with a working version mind to post some hints on how to > achieve: > > > > cpan PDL::Graphics::Simple > pdl> use PDL::Graphics::Simple > pdl> imag (sin(rvals(200,200)+1)) > > > > on no matter on which platform but with the least number of steps? > > > > Thanks a lot, Thomas > > > > On Wed, Aug 30, 2023 at 4:51 PM William Schmidt < > t.w...@gm...> wrote: > > 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 <ng...@gm...> 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* > cpan *graphics 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...@li... > https://lists.sourceforge.net/lists/listinfo/pdl-devel > > > > _______________________________________________ > > pdl-devel mailing list > > pdl...@li... > > https://lists.sourceforge.net/lists/listinfo/pdl-devel > > _______________________________________________ > pdl-devel mailing list > pdl...@li... > https://lists.sourceforge.net/lists/listinfo/pdl-devel > > > > > |
From: William S. <t.w...@gm...> - 2023-09-02 13:58:41
|
Hello Thomas, Simple.pm contains the following Perl fragment, to wit: for my $submod(qw/ PGPLOT Gnuplot PLplot Prima /) { eval "use PDL::Graphics::Simple::$submod;";} What that for loop does is attempt to load all four of the PDL ploting engine wrappers into the active namespace even though you will likely only use one, or have one installed. Find it, wherever cpan/cpanm installed it and remove the three you are not using. Since you have reported positive results with gnuplot, rewrite that fragment: for my $submod(qw/ Gnuplot /) { eval "use PDL::Graphics::Simple::$submod;"; } I agree with you, PDL sorely needs better install documentation, not just for Arch Linux, but for all platforms. My experience getting the latest PDL installed and running in macOS was so bad I now do 'cpanm --look ...' in order to download without building Perl distros, so I can read any install docs that may be present therein. Even that was not enough for getting PDL up; I still had to hack it, as previously documented. Regards, Will On Sat, Sep 2, 2023 at 4:05 AM <ng...@gm...> wrote: > Sorry about 3 e-mails. In fact, problem solved! It actually picks Gnuplot > despite that first message. > > I would like to encourage to publish e.g. the recipe for Arch Linux, see > previous e-mail, to save potential users a lot of time. In addition, a > sequence of install commands for Ubuntu may also be appropriate for > publication on the web page. I will post these when accomplished. > > Much appreciated is all the help and support I received! > > Thanks again, Thomas > > > pdl> use PDL::Graphics::Simple > Can't locate PDL/Graphics/PGPLOT/Window.pm in @INC (you may need to > install the PDL::Graphics::PGPLOT::Window module) (@INC entries checked: > /home/th6mas/perl5/lib/perl5/5.38.0/x86_64-linux-thread-multi > /home/th6mas/perl5/lib/perl5/5.38.0 > /home/th6mas/perl5/lib/perl5/x86_64-linux-thread-multi > /home/th6mas/perl5/lib/perl5 /usr/lib/perl5/5.38/site_perl > /usr/share/perl5/site_perl /usr/lib/perl5/5.38/vendor_perl > /usr/share/perl5/vendor_perl /usr/lib/perl5/5.38/core_perl > /usr/share/perl5/core_perl) at > /home/th6mas/perl5/lib/perl5/PDL/Graphics/Simple/PGPLOT.pm line 28. > > pdl> imag (sin(rvals(200,200)+1)) > Trying gnuplot (PDL::Graphics::Gnuplot)...ok > > > On Sat, Sep 2, 2023 at 12:47 AM Ed . <ej...@ho...> wrote: > >> Hi Thomas, >> >> >> >> You will want to install Term::ReadKey and probably Term::ReadLine::Gnu >> to have a nicer, more interactive perldl. I don’t use pdl2 myself, but it >> did tell you what it needs to run if you want to use it. >> >> >> >> Also, Alien::Gnuplot only installs (or checks for) actual gnuplot. If you >> want the PDL interface to it, which PDL::Graphics::Simple wraps around, you >> need to install PDL::Graphics::Gnuplot. This would solve the thing >> PDL::Graphics::Simple was telling you: “Sorry, all known plotting >> engines failed. Install one and try again.” Please read >> https://metacpan.org/pod/PDL::Graphics::Simple#SUPPORTED-GRAPHICS-ENGINES >> >> >> >> Best regards, >> >> Ed >> >> >> >> *From: *ng...@gm... >> *Sent: *01 September 2023 18:10 >> *To: *Ed . <ej...@ho...> >> *Cc: *Ingo Schmid <in...@gm...>; pdl...@li... >> *Subject: *Re: [Pdl-devel] Debian 12 "-t experimental" install of PDL >> >> >> >> Hello Ed, >> >> >> >> as I understand, there a different options to get First Steps from the >> PDL book to work. I have adopted the approach using perlbrew and cpanm >> as they seem the most stable. >> >> >> >> Please find below the sequence of commands issued and the final error >> messages under Ubuntu. I used the same approach on three different Linux >> distributions (Debian, Ubuntu, Arch) with the same result. >> >> >> >> Is there any chance to reproduce the problem and look into it? >> >> >> >> Thanks a lot, Thomas >> >> >> >> # idea: install PDL piggyback from CPAN under perlbrew >> >> >> >> perlbrew init # change prompt in .profile, .bashrc >> >> perlbrew install perl-5.38.0 >> >> perlbrew install-cpanm >> >> perlbrew install-patchperl >> >> perlbrew switch perl-5.38.0 >> >> >> >> cpanm Alien::Gnuplot # first ...OK >> >> cpanm PDL::Graphics::Simple # second ...OK >> >> >> >> Ubuntu: ~ $ pdl2 >> >> pdl2: Devel::REPL version 1.003011 not found, running >> '/home/th6mas/perl5/perlbrew/perls/perl-5.38.0/bin/perldl' instead... >> >> perlDL shell v1.357 >> >> PDL comes with ABSOLUTELY NO WARRANTY. For details, see the file >> >> 'COPYING' in the PDL distribution. This is free software and you >> >> are welcome to redistribute it under certain conditions, see >> >> the same file for details. >> >> ReadLines, NiceSlice, MultiLines enabled >> >> Reading PDL/default.perldlrc... >> >> WARNING: Error loading PDL: 'Can't locate Term/ReadKey.pm in @INC (you >> may need to install the Term::ReadKey module) (@INC entries checked: >> /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/lib/site_perl/5.38.0/x86_64-linux >> /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/lib/site_perl/5.38.0 >> /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/lib/5.38.0/x86_64-linux >> /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/lib/5.38.0) at >> /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/lib/site_perl/5.38.0/x86_64-linux/PDL/Doc/Perldl.pm >> line 52. >> >> BEGIN failed--compilation aborted at >> /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/lib/site_perl/5.38.0/x86_64-linux/PDL/Doc/Perldl.pm >> line 52. >> >> Compilation failed in require at >> /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/lib/site_perl/5.38.0/x86_64-linux/PDL/default.perldlrc >> line 37. >> >> BEGIN failed--compilation aborted at >> /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/lib/site_perl/5.38.0/x86_64-linux/PDL/default.perldlrc >> line 37. >> >> Compilation failed in require at (eval 14) line 1. >> >> ' - trying blib. >> >> WARNING: PDL startup not found only plain perl available >> >> >> >> Note: AutoLoader not enabled ('use PDL::AutoLoader' recommended) >> >> >> >> perl> use PDL::Graphics::Simple >> >> Can't locate PDL/Graphics/PGPLOT/Window.pm in @INC (you may need to >> install the PDL::Graphics::PGPLOT::Window module) (@INC entries checked: >> /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/lib/site_perl/5.38.0/x86_64-linux >> /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/lib/site_perl/5.38.0 >> /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/lib/5.38.0/x86_64-linux >> /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/lib/5.38.0) at >> /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/lib/site_perl/5.38.0/PDL/Graphics/Simple/PGPLOT.pm >> line 28, <STDIN> line 1. >> >> >> >> perl> imag (sin(rvals(200,200)+1)) >> >> Sorry, all known plotting engines failed. Install one and try again. >> >> at >> /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/lib/site_perl/5.38.0/PDL/Graphics/Simple.pm >> line 434, <STDIN> line 2. >> >> PDL::Graphics::Simple::new("PDL::Graphics::Simple") called at >> /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/lib/site_perl/5.38.0/PDL/Graphics/Simple.pm >> line 389 >> >> PDL::Graphics::Simple::pgswin() called at >> /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/lib/site_perl/5.38.0/PDL/Graphics/Simple.pm >> line 1262 >> >> PDL::Graphics::Simple::_global_or_new() called at >> /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/lib/site_perl/5.38.0/PDL/Graphics/Simple.pm >> line 1151 >> >> PDL::Graphics::Simple::imag(PDL=SCALAR(0x563dd1c9aca0)) called at (eval >> 50) line 1 >> >> eval 'imag (sin(rvals(200,200)+1)) >> >> ' called at (eval 36) line 6 >> >> main::eval_and_report("imag (sin(rvals(200,200)+1))\x{a}") called at >> /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/bin/perldl line 618 >> >> main::process_input() called at >> /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/bin/perldl line 638 >> >> eval {...} called at >> /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/bin/perldl line 638 >> >> require /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/bin/perldl called >> at /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/bin/pdl2 line 27 >> >> main::BEGIN() called at >> /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/bin/pdl2 line 33 >> >> eval {...} called at >> /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/bin/pdl2 line 33 >> >> >> >> perl> quit >> >> >> >> >> >> On Fri, Sep 1, 2023 at 4:56 PM Ed . <ej...@ho...> wrote: >> >> Please just try with the latest (Perl 5.38, PDL 2.084), and report any >> problems? >> >> >> >> Best regards, >> >> Ed >> >> >> >> *From: *ng...@gm... >> *Sent: *31 August 2023 19:09 >> *To: *Ingo Schmid <in...@gm...> >> *Cc: *pdl...@li... >> *Subject: *Re: [Pdl-devel] Debian 12 "-t experimental" install of PDL >> >> >> >> Hello Ingo, >> >> >> >> much appreciate! Just to ask which perl version is most likely to run the >> commands from the First Step PDL Book? >> >> >> >> @anyone: which perl version is known to work for that purpose? >> >> >> >> Thanks a lot, Thomas >> >> >> >> On Thu, Aug 31, 2023 at 11:00 AM Ingo Schmid <in...@gm...> wrote: >> >> Hi, >> >> I have not really read through the whole thread, I apologise if this does >> not apply to your problem then. >> >> I have moved most of the PDL stuff to perlbrew which allows a fairly >> system independent installation, it's berrybrew on windows, I don't own >> Macs. On linux, your distribution most probably provides it, I used apt to >> install the software itself. The best part about is, that system (perl) >> upgrades don't break your PDL installation. This allowed me to consistently >> run things cross platform with no troubles for a long time. >> >> Run >> >> > perlbrew install <perl version> >> > perlbrew install-cpanm >> > perlbrew install-patchperl >> >> It takes a fair amount of installation time and I guess disk space, >> defaults to your home. >> >> Please consult the perlbrew docs for the exact process, this is I think >> the most useful info: https://perlbrew.pl/Perlbrew-and-Friends.html. >> Once you are set, use >> >> > perlbrew switch ... >> >> > cpanm PDL::Graphics::Simple >> >> I guess you may need to install a few dependencies that are either >> ambiguous or simply missing using cpanm from the same shell. I don't >> remember if P:G:S comes with a default backend or if you need to, for >> example, install gnuplot. >> >> I hope this helps. >> >> Ingo >> >> On 8/31/23 10:12, ng...@gm... wrote: >> >> Hello, >> >> >> >> would anyone with a working version mind to post some hints on how to >> achieve: >> >> >> >> cpan PDL::Graphics::Simple >> pdl> use PDL::Graphics::Simple >> pdl> imag (sin(rvals(200,200)+1)) >> >> >> >> on no matter on which platform but with the least number of steps? >> >> >> >> Thanks a lot, Thomas >> >> >> >> On Wed, Aug 30, 2023 at 4:51 PM William Schmidt < >> t.w...@gm...> wrote: >> >> 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 <ng...@gm...> 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* >> cpan *graphics 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...@li... >> https://lists.sourceforge.net/lists/listinfo/pdl-devel >> >> >> >> _______________________________________________ >> >> pdl-devel mailing list >> >> pdl...@li... >> >> https://lists.sourceforge.net/lists/listinfo/pdl-devel >> >> _______________________________________________ >> pdl-devel mailing list >> pdl...@li... >> https://lists.sourceforge.net/lists/listinfo/pdl-devel >> >> >> >> >> > _______________________________________________ > pdl-devel mailing list > pdl...@li... > https://lists.sourceforge.net/lists/listinfo/pdl-devel > |
From: <ng...@gm...> - 2023-09-02 09:05:04
|
Sorry about 3 e-mails. In fact, problem solved! It actually picks Gnuplot despite that first message. I would like to encourage to publish e.g. the recipe for Arch Linux, see previous e-mail, to save potential users a lot of time. In addition, a sequence of install commands for Ubuntu may also be appropriate for publication on the web page. I will post these when accomplished. Much appreciated is all the help and support I received! Thanks again, Thomas pdl> use PDL::Graphics::Simple Can't locate PDL/Graphics/PGPLOT/Window.pm in @INC (you may need to install the PDL::Graphics::PGPLOT::Window module) (@INC entries checked: /home/th6mas/perl5/lib/perl5/5.38.0/x86_64-linux-thread-multi /home/th6mas/perl5/lib/perl5/5.38.0 /home/th6mas/perl5/lib/perl5/x86_64-linux-thread-multi /home/th6mas/perl5/lib/perl5 /usr/lib/perl5/5.38/site_perl /usr/share/perl5/site_perl /usr/lib/perl5/5.38/vendor_perl /usr/share/perl5/vendor_perl /usr/lib/perl5/5.38/core_perl /usr/share/perl5/core_perl) at /home/th6mas/perl5/lib/perl5/PDL/Graphics/Simple/PGPLOT.pm line 28. pdl> imag (sin(rvals(200,200)+1)) Trying gnuplot (PDL::Graphics::Gnuplot)...ok On Sat, Sep 2, 2023 at 12:47 AM Ed . <ej...@ho...> wrote: > Hi Thomas, > > > > You will want to install Term::ReadKey and probably Term::ReadLine::Gnu to > have a nicer, more interactive perldl. I don’t use pdl2 myself, but it did > tell you what it needs to run if you want to use it. > > > > Also, Alien::Gnuplot only installs (or checks for) actual gnuplot. If you > want the PDL interface to it, which PDL::Graphics::Simple wraps around, you > need to install PDL::Graphics::Gnuplot. This would solve the thing > PDL::Graphics::Simple was telling you: “Sorry, all known plotting engines > failed. Install one and try again.” Please read > https://metacpan.org/pod/PDL::Graphics::Simple#SUPPORTED-GRAPHICS-ENGINES > > > > Best regards, > > Ed > > > > *From: *ng...@gm... > *Sent: *01 September 2023 18:10 > *To: *Ed . <ej...@ho...> > *Cc: *Ingo Schmid <in...@gm...>; pdl...@li... > *Subject: *Re: [Pdl-devel] Debian 12 "-t experimental" install of PDL > > > > Hello Ed, > > > > as I understand, there a different options to get First Steps from the PDL > book to work. I have adopted the approach using perlbrew and cpanm as > they seem the most stable. > > > > Please find below the sequence of commands issued and the final error > messages under Ubuntu. I used the same approach on three different Linux > distributions (Debian, Ubuntu, Arch) with the same result. > > > > Is there any chance to reproduce the problem and look into it? > > > > Thanks a lot, Thomas > > > > # idea: install PDL piggyback from CPAN under perlbrew > > > > perlbrew init # change prompt in .profile, .bashrc > > perlbrew install perl-5.38.0 > > perlbrew install-cpanm > > perlbrew install-patchperl > > perlbrew switch perl-5.38.0 > > > > cpanm Alien::Gnuplot # first ...OK > > cpanm PDL::Graphics::Simple # second ...OK > > > > Ubuntu: ~ $ pdl2 > > pdl2: Devel::REPL version 1.003011 not found, running > '/home/th6mas/perl5/perlbrew/perls/perl-5.38.0/bin/perldl' instead... > > perlDL shell v1.357 > > PDL comes with ABSOLUTELY NO WARRANTY. For details, see the file > > 'COPYING' in the PDL distribution. This is free software and you > > are welcome to redistribute it under certain conditions, see > > the same file for details. > > ReadLines, NiceSlice, MultiLines enabled > > Reading PDL/default.perldlrc... > > WARNING: Error loading PDL: 'Can't locate Term/ReadKey.pm in @INC (you may > need to install the Term::ReadKey module) (@INC entries checked: > /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/lib/site_perl/5.38.0/x86_64-linux > /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/lib/site_perl/5.38.0 > /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/lib/5.38.0/x86_64-linux > /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/lib/5.38.0) at > /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/lib/site_perl/5.38.0/x86_64-linux/PDL/Doc/Perldl.pm > line 52. > > BEGIN failed--compilation aborted at > /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/lib/site_perl/5.38.0/x86_64-linux/PDL/Doc/Perldl.pm > line 52. > > Compilation failed in require at > /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/lib/site_perl/5.38.0/x86_64-linux/PDL/default.perldlrc > line 37. > > BEGIN failed--compilation aborted at > /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/lib/site_perl/5.38.0/x86_64-linux/PDL/default.perldlrc > line 37. > > Compilation failed in require at (eval 14) line 1. > > ' - trying blib. > > WARNING: PDL startup not found only plain perl available > > > > Note: AutoLoader not enabled ('use PDL::AutoLoader' recommended) > > > > perl> use PDL::Graphics::Simple > > Can't locate PDL/Graphics/PGPLOT/Window.pm in @INC (you may need to > install the PDL::Graphics::PGPLOT::Window module) (@INC entries checked: > /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/lib/site_perl/5.38.0/x86_64-linux > /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/lib/site_perl/5.38.0 > /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/lib/5.38.0/x86_64-linux > /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/lib/5.38.0) at > /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/lib/site_perl/5.38.0/PDL/Graphics/Simple/PGPLOT.pm > line 28, <STDIN> line 1. > > > > perl> imag (sin(rvals(200,200)+1)) > > Sorry, all known plotting engines failed. Install one and try again. > > at > /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/lib/site_perl/5.38.0/PDL/Graphics/Simple.pm > line 434, <STDIN> line 2. > > PDL::Graphics::Simple::new("PDL::Graphics::Simple") called at > /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/lib/site_perl/5.38.0/PDL/Graphics/Simple.pm > line 389 > > PDL::Graphics::Simple::pgswin() called at > /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/lib/site_perl/5.38.0/PDL/Graphics/Simple.pm > line 1262 > > PDL::Graphics::Simple::_global_or_new() called at > /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/lib/site_perl/5.38.0/PDL/Graphics/Simple.pm > line 1151 > > PDL::Graphics::Simple::imag(PDL=SCALAR(0x563dd1c9aca0)) called at (eval > 50) line 1 > > eval 'imag (sin(rvals(200,200)+1)) > > ' called at (eval 36) line 6 > > main::eval_and_report("imag (sin(rvals(200,200)+1))\x{a}") called at > /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/bin/perldl line 618 > > main::process_input() called at > /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/bin/perldl line 638 > > eval {...} called at > /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/bin/perldl line 638 > > require /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/bin/perldl called at > /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/bin/pdl2 line 27 > > main::BEGIN() called at > /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/bin/pdl2 line 33 > > eval {...} called at > /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/bin/pdl2 line 33 > > > > perl> quit > > > > > > On Fri, Sep 1, 2023 at 4:56 PM Ed . <ej...@ho...> wrote: > > Please just try with the latest (Perl 5.38, PDL 2.084), and report any > problems? > > > > Best regards, > > Ed > > > > *From: *ng...@gm... > *Sent: *31 August 2023 19:09 > *To: *Ingo Schmid <in...@gm...> > *Cc: *pdl...@li... > *Subject: *Re: [Pdl-devel] Debian 12 "-t experimental" install of PDL > > > > Hello Ingo, > > > > much appreciate! Just to ask which perl version is most likely to run the > commands from the First Step PDL Book? > > > > @anyone: which perl version is known to work for that purpose? > > > > Thanks a lot, Thomas > > > > On Thu, Aug 31, 2023 at 11:00 AM Ingo Schmid <in...@gm...> wrote: > > Hi, > > I have not really read through the whole thread, I apologise if this does > not apply to your problem then. > > I have moved most of the PDL stuff to perlbrew which allows a fairly > system independent installation, it's berrybrew on windows, I don't own > Macs. On linux, your distribution most probably provides it, I used apt to > install the software itself. The best part about is, that system (perl) > upgrades don't break your PDL installation. This allowed me to consistently > run things cross platform with no troubles for a long time. > > Run > > > perlbrew install <perl version> > > perlbrew install-cpanm > > perlbrew install-patchperl > > It takes a fair amount of installation time and I guess disk space, > defaults to your home. > > Please consult the perlbrew docs for the exact process, this is I think > the most useful info: https://perlbrew.pl/Perlbrew-and-Friends.html. Once > you are set, use > > > perlbrew switch ... > > > cpanm PDL::Graphics::Simple > > I guess you may need to install a few dependencies that are either > ambiguous or simply missing using cpanm from the same shell. I don't > remember if P:G:S comes with a default backend or if you need to, for > example, install gnuplot. > > I hope this helps. > > Ingo > > On 8/31/23 10:12, ng...@gm... wrote: > > Hello, > > > > would anyone with a working version mind to post some hints on how to > achieve: > > > > cpan PDL::Graphics::Simple > pdl> use PDL::Graphics::Simple > pdl> imag (sin(rvals(200,200)+1)) > > > > on no matter on which platform but with the least number of steps? > > > > Thanks a lot, Thomas > > > > On Wed, Aug 30, 2023 at 4:51 PM William Schmidt < > t.w...@gm...> wrote: > > 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 <ng...@gm...> 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* > cpan *graphics 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...@li... > https://lists.sourceforge.net/lists/listinfo/pdl-devel > > > > _______________________________________________ > > pdl-devel mailing list > > pdl...@li... > > https://lists.sourceforge.net/lists/listinfo/pdl-devel > > _______________________________________________ > pdl-devel mailing list > pdl...@li... > https://lists.sourceforge.net/lists/listinfo/pdl-devel > > > > > |
From: <ng...@gm...> - 2023-09-02 08:46:49
|
Hello Ed, here is the amended install instructions for Arch Linux, see below. No errors are reported and all packages are installed OK. Perlbrew is not used for now. Even a graphics window with the desired output of imag (sin(rvals(200,200)+1)) pops up quickly during install of sudo cpanm PDL::Graphics::Simple. which is encouraging. However, pdl> use PDL::Graphics::Simple Can't locate PDL/Graphics/PGPLOT/Window.pm in @INC (you may need to install the PDL::Graphics::PGPLOT::Window module) (@INC entries checked: /home/th6mas/perl5/lib/perl5/5.38.0/x86_64-linux-thread-multi /home/th6mas/perl5/lib/perl5/5.38.0 /home/th6mas/perl5/lib/perl5/x86_64-linux-thread-multi /home/th6mas/perl5/lib/perl5 /usr/lib/perl5/5.38/site_perl /usr/share/perl5/site_perl /usr/lib/perl5/5.38/vendor_perl /usr/share/perl5/vendor_perl /usr/lib/perl5/5.38/core_perl /usr/share/perl5/core_perl) at /home/th6mas/perl5/lib/perl5/PDL/Graphics/Simple/PGPLOT.pm line 28. reading through https://metacpan.org/pod/PDL::Graphics::Simple#SUPPORTED-GRAPHICS-ENGINES we are in my Arch installation in the Gnuplot world where things work fine. How then to direct the interactive pdl shell not to use PGPLOT but Gnuplot instead? Thanks a lot, Thomas ### install instruction for Arch Linux / Gnome / Wayland 1. cpanm sudo cpanm Term::ReadKey sudo cpanm Term::ReadLine::Gnu # use gnuplot vs pgplot on macos https://metacpan.org/pod/PDL::Graphics::Simple#SUPPORTED-GRAPHICS-ENGINES sudo cpanm Alien::Gnuplot # first sudo cpanm PDL::Graphics::Gnuplot # second sudo cpanm PDL::Graphics::Simple # third, pops up 2. First Steps from PDL book pdl # run pdl not pdl2 pdl> use PDL::Graphics::Simple pdl> imag (sin(rvals(200,200)+1)) On Sat, Sep 2, 2023 at 12:47 AM Ed . <ej...@ho...> wrote: > Hi Thomas, > > > > You will want to install Term::ReadKey and probably Term::ReadLine::Gnu to > have a nicer, more interactive perldl. I don’t use pdl2 myself, but it did > tell you what it needs to run if you want to use it. > > > > Also, Alien::Gnuplot only installs (or checks for) actual gnuplot. If you > want the PDL interface to it, which PDL::Graphics::Simple wraps around, you > need to install PDL::Graphics::Gnuplot. This would solve the thing > PDL::Graphics::Simple was telling you: “Sorry, all known plotting engines > failed. Install one and try again.” Please read > https://metacpan.org/pod/PDL::Graphics::Simple#SUPPORTED-GRAPHICS-ENGINES > > > > Best regards, > > Ed > > > > *From: *ng...@gm... > *Sent: *01 September 2023 18:10 > *To: *Ed . <ej...@ho...> > *Cc: *Ingo Schmid <in...@gm...>; pdl...@li... > *Subject: *Re: [Pdl-devel] Debian 12 "-t experimental" install of PDL > > > > Hello Ed, > > > > as I understand, there a different options to get First Steps from the PDL > book to work. I have adopted the approach using perlbrew and cpanm as > they seem the most stable. > > > > Please find below the sequence of commands issued and the final error > messages under Ubuntu. I used the same approach on three different Linux > distributions (Debian, Ubuntu, Arch) with the same result. > > > > Is there any chance to reproduce the problem and look into it? > > > > Thanks a lot, Thomas > > > > # idea: install PDL piggyback from CPAN under perlbrew > > > > perlbrew init # change prompt in .profile, .bashrc > > perlbrew install perl-5.38.0 > > perlbrew install-cpanm > > perlbrew install-patchperl > > perlbrew switch perl-5.38.0 > > > > cpanm Alien::Gnuplot # first ...OK > > cpanm PDL::Graphics::Simple # second ...OK > > > > Ubuntu: ~ $ pdl2 > > pdl2: Devel::REPL version 1.003011 not found, running > '/home/th6mas/perl5/perlbrew/perls/perl-5.38.0/bin/perldl' instead... > > perlDL shell v1.357 > > PDL comes with ABSOLUTELY NO WARRANTY. For details, see the file > > 'COPYING' in the PDL distribution. This is free software and you > > are welcome to redistribute it under certain conditions, see > > the same file for details. > > ReadLines, NiceSlice, MultiLines enabled > > Reading PDL/default.perldlrc... > > WARNING: Error loading PDL: 'Can't locate Term/ReadKey.pm in @INC (you may > need to install the Term::ReadKey module) (@INC entries checked: > /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/lib/site_perl/5.38.0/x86_64-linux > /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/lib/site_perl/5.38.0 > /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/lib/5.38.0/x86_64-linux > /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/lib/5.38.0) at > /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/lib/site_perl/5.38.0/x86_64-linux/PDL/Doc/Perldl.pm > line 52. > > BEGIN failed--compilation aborted at > /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/lib/site_perl/5.38.0/x86_64-linux/PDL/Doc/Perldl.pm > line 52. > > Compilation failed in require at > /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/lib/site_perl/5.38.0/x86_64-linux/PDL/default.perldlrc > line 37. > > BEGIN failed--compilation aborted at > /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/lib/site_perl/5.38.0/x86_64-linux/PDL/default.perldlrc > line 37. > > Compilation failed in require at (eval 14) line 1. > > ' - trying blib. > > WARNING: PDL startup not found only plain perl available > > > > Note: AutoLoader not enabled ('use PDL::AutoLoader' recommended) > > > > perl> use PDL::Graphics::Simple > > Can't locate PDL/Graphics/PGPLOT/Window.pm in @INC (you may need to > install the PDL::Graphics::PGPLOT::Window module) (@INC entries checked: > /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/lib/site_perl/5.38.0/x86_64-linux > /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/lib/site_perl/5.38.0 > /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/lib/5.38.0/x86_64-linux > /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/lib/5.38.0) at > /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/lib/site_perl/5.38.0/PDL/Graphics/Simple/PGPLOT.pm > line 28, <STDIN> line 1. > > > > perl> imag (sin(rvals(200,200)+1)) > > Sorry, all known plotting engines failed. Install one and try again. > > at > /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/lib/site_perl/5.38.0/PDL/Graphics/Simple.pm > line 434, <STDIN> line 2. > > PDL::Graphics::Simple::new("PDL::Graphics::Simple") called at > /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/lib/site_perl/5.38.0/PDL/Graphics/Simple.pm > line 389 > > PDL::Graphics::Simple::pgswin() called at > /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/lib/site_perl/5.38.0/PDL/Graphics/Simple.pm > line 1262 > > PDL::Graphics::Simple::_global_or_new() called at > /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/lib/site_perl/5.38.0/PDL/Graphics/Simple.pm > line 1151 > > PDL::Graphics::Simple::imag(PDL=SCALAR(0x563dd1c9aca0)) called at (eval > 50) line 1 > > eval 'imag (sin(rvals(200,200)+1)) > > ' called at (eval 36) line 6 > > main::eval_and_report("imag (sin(rvals(200,200)+1))\x{a}") called at > /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/bin/perldl line 618 > > main::process_input() called at > /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/bin/perldl line 638 > > eval {...} called at > /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/bin/perldl line 638 > > require /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/bin/perldl called at > /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/bin/pdl2 line 27 > > main::BEGIN() called at > /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/bin/pdl2 line 33 > > eval {...} called at > /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/bin/pdl2 line 33 > > > > perl> quit > > > > > > On Fri, Sep 1, 2023 at 4:56 PM Ed . <ej...@ho...> wrote: > > Please just try with the latest (Perl 5.38, PDL 2.084), and report any > problems? > > > > Best regards, > > Ed > > > > *From: *ng...@gm... > *Sent: *31 August 2023 19:09 > *To: *Ingo Schmid <in...@gm...> > *Cc: *pdl...@li... > *Subject: *Re: [Pdl-devel] Debian 12 "-t experimental" install of PDL > > > > Hello Ingo, > > > > much appreciate! Just to ask which perl version is most likely to run the > commands from the First Step PDL Book? > > > > @anyone: which perl version is known to work for that purpose? > > > > Thanks a lot, Thomas > > > > On Thu, Aug 31, 2023 at 11:00 AM Ingo Schmid <in...@gm...> wrote: > > Hi, > > I have not really read through the whole thread, I apologise if this does > not apply to your problem then. > > I have moved most of the PDL stuff to perlbrew which allows a fairly > system independent installation, it's berrybrew on windows, I don't own > Macs. On linux, your distribution most probably provides it, I used apt to > install the software itself. The best part about is, that system (perl) > upgrades don't break your PDL installation. This allowed me to consistently > run things cross platform with no troubles for a long time. > > Run > > > perlbrew install <perl version> > > perlbrew install-cpanm > > perlbrew install-patchperl > > It takes a fair amount of installation time and I guess disk space, > defaults to your home. > > Please consult the perlbrew docs for the exact process, this is I think > the most useful info: https://perlbrew.pl/Perlbrew-and-Friends.html. Once > you are set, use > > > perlbrew switch ... > > > cpanm PDL::Graphics::Simple > > I guess you may need to install a few dependencies that are either > ambiguous or simply missing using cpanm from the same shell. I don't > remember if P:G:S comes with a default backend or if you need to, for > example, install gnuplot. > > I hope this helps. > > Ingo > > On 8/31/23 10:12, ng...@gm... wrote: > > Hello, > > > > would anyone with a working version mind to post some hints on how to > achieve: > > > > cpan PDL::Graphics::Simple > pdl> use PDL::Graphics::Simple > pdl> imag (sin(rvals(200,200)+1)) > > > > on no matter on which platform but with the least number of steps? > > > > Thanks a lot, Thomas > > > > On Wed, Aug 30, 2023 at 4:51 PM William Schmidt < > t.w...@gm...> wrote: > > 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 <ng...@gm...> 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* > cpan *graphics 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...@li... > https://lists.sourceforge.net/lists/listinfo/pdl-devel > > > > _______________________________________________ > > pdl-devel mailing list > > pdl...@li... > > https://lists.sourceforge.net/lists/listinfo/pdl-devel > > _______________________________________________ > pdl-devel mailing list > pdl...@li... > https://lists.sourceforge.net/lists/listinfo/pdl-devel > > > > > |
From: <ng...@gm...> - 2023-09-02 08:41:30
|
Hi Ed, here the amended install instructions for Arch Linux, see below. No errors are reported and all packages are installed OK. Perlbrew is not used for now. Even a graphics window with the desired output of imag (sin(rvals(200,200)+1)) pops up quickly during install of sudo cpanm PDL::Graphics::Simple. which is encouraging. However, pdl> use PDL::Graphics::Simple Can't locate PDL/Graphics/PGPLOT/Window.pm in @INC (you may need to install the PDL::Graphics::PGPLOT::Window module) (@INC entries checked: /home/th6mas/perl5/lib/perl5/5.38.0/x86_64-linux-thread-multi /home/th6mas/perl5/lib/perl5/5.38.0 /home/th6mas/perl5/lib/perl5/x86_64-linux-thread-multi /home/th6mas/perl5/lib/perl5 /usr/lib/perl5/5.38/site_perl /usr/share/perl5/site_perl /usr/lib/perl5/5.38/vendor_perl /usr/share/perl5/vendor_perl /usr/lib/perl5/5.38/core_perl /usr/share/perl5/core_perl) at /home/th6mas/perl5/lib/perl5/PDL/Graphics/Simple/PGPLOT.pm line 28. reading through https://metacpan.org/pod/PDL::Graphics::Simple#SUPPORTED-GRAPHICS-ENGINES we are in my Arch installation in the Gnuplot world where things work fine. How then to direct the interactive pdl shell not to use PGPLOT but Gnuplot instead? Thanks a lot, Thomas On Sat, Sep 2, 2023 at 12:47 AM Ed . <ej...@ho...> wrote: > Hi Thomas, > > > > You will want to install Term::ReadKey and probably Term::ReadLine::Gnu to > have a nicer, more interactive perldl. I don’t use pdl2 myself, but it did > tell you what it needs to run if you want to use it. > > > > Also, Alien::Gnuplot only installs (or checks for) actual gnuplot. If you > want the PDL interface to it, which PDL::Graphics::Simple wraps around, you > need to install PDL::Graphics::Gnuplot. This would solve the thing > PDL::Graphics::Simple was telling you: “Sorry, all known plotting engines > failed. Install one and try again.” Please read > https://metacpan.org/pod/PDL::Graphics::Simple#SUPPORTED-GRAPHICS-ENGINES > > > > Best regards, > > Ed > > > > *From: *ng...@gm... > *Sent: *01 September 2023 18:10 > *To: *Ed . <ej...@ho...> > *Cc: *Ingo Schmid <in...@gm...>; pdl...@li... > *Subject: *Re: [Pdl-devel] Debian 12 "-t experimental" install of PDL > > > > Hello Ed, > > > > as I understand, there a different options to get First Steps from the PDL > book to work. I have adopted the approach using perlbrew and cpanm as > they seem the most stable. > > > > Please find below the sequence of commands issued and the final error > messages under Ubuntu. I used the same approach on three different Linux > distributions (Debian, Ubuntu, Arch) with the same result. > > > > Is there any chance to reproduce the problem and look into it? > > > > Thanks a lot, Thomas > > > > # idea: install PDL piggyback from CPAN under perlbrew > > > > perlbrew init # change prompt in .profile, .bashrc > > perlbrew install perl-5.38.0 > > perlbrew install-cpanm > > perlbrew install-patchperl > > perlbrew switch perl-5.38.0 > > > > cpanm Alien::Gnuplot # first ...OK > > cpanm PDL::Graphics::Simple # second ...OK > > > > Ubuntu: ~ $ pdl2 > > pdl2: Devel::REPL version 1.003011 not found, running > '/home/th6mas/perl5/perlbrew/perls/perl-5.38.0/bin/perldl' instead... > > perlDL shell v1.357 > > PDL comes with ABSOLUTELY NO WARRANTY. For details, see the file > > 'COPYING' in the PDL distribution. This is free software and you > > are welcome to redistribute it under certain conditions, see > > the same file for details. > > ReadLines, NiceSlice, MultiLines enabled > > Reading PDL/default.perldlrc... > > WARNING: Error loading PDL: 'Can't locate Term/ReadKey.pm in @INC (you may > need to install the Term::ReadKey module) (@INC entries checked: > /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/lib/site_perl/5.38.0/x86_64-linux > /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/lib/site_perl/5.38.0 > /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/lib/5.38.0/x86_64-linux > /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/lib/5.38.0) at > /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/lib/site_perl/5.38.0/x86_64-linux/PDL/Doc/Perldl.pm > line 52. > > BEGIN failed--compilation aborted at > /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/lib/site_perl/5.38.0/x86_64-linux/PDL/Doc/Perldl.pm > line 52. > > Compilation failed in require at > /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/lib/site_perl/5.38.0/x86_64-linux/PDL/default.perldlrc > line 37. > > BEGIN failed--compilation aborted at > /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/lib/site_perl/5.38.0/x86_64-linux/PDL/default.perldlrc > line 37. > > Compilation failed in require at (eval 14) line 1. > > ' - trying blib. > > WARNING: PDL startup not found only plain perl available > > > > Note: AutoLoader not enabled ('use PDL::AutoLoader' recommended) > > > > perl> use PDL::Graphics::Simple > > Can't locate PDL/Graphics/PGPLOT/Window.pm in @INC (you may need to > install the PDL::Graphics::PGPLOT::Window module) (@INC entries checked: > /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/lib/site_perl/5.38.0/x86_64-linux > /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/lib/site_perl/5.38.0 > /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/lib/5.38.0/x86_64-linux > /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/lib/5.38.0) at > /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/lib/site_perl/5.38.0/PDL/Graphics/Simple/PGPLOT.pm > line 28, <STDIN> line 1. > > > > perl> imag (sin(rvals(200,200)+1)) > > Sorry, all known plotting engines failed. Install one and try again. > > at > /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/lib/site_perl/5.38.0/PDL/Graphics/Simple.pm > line 434, <STDIN> line 2. > > PDL::Graphics::Simple::new("PDL::Graphics::Simple") called at > /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/lib/site_perl/5.38.0/PDL/Graphics/Simple.pm > line 389 > > PDL::Graphics::Simple::pgswin() called at > /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/lib/site_perl/5.38.0/PDL/Graphics/Simple.pm > line 1262 > > PDL::Graphics::Simple::_global_or_new() called at > /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/lib/site_perl/5.38.0/PDL/Graphics/Simple.pm > line 1151 > > PDL::Graphics::Simple::imag(PDL=SCALAR(0x563dd1c9aca0)) called at (eval > 50) line 1 > > eval 'imag (sin(rvals(200,200)+1)) > > ' called at (eval 36) line 6 > > main::eval_and_report("imag (sin(rvals(200,200)+1))\x{a}") called at > /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/bin/perldl line 618 > > main::process_input() called at > /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/bin/perldl line 638 > > eval {...} called at > /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/bin/perldl line 638 > > require /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/bin/perldl called at > /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/bin/pdl2 line 27 > > main::BEGIN() called at > /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/bin/pdl2 line 33 > > eval {...} called at > /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/bin/pdl2 line 33 > > > > perl> quit > > > > > > On Fri, Sep 1, 2023 at 4:56 PM Ed . <ej...@ho...> wrote: > > Please just try with the latest (Perl 5.38, PDL 2.084), and report any > problems? > > > > Best regards, > > Ed > > > > *From: *ng...@gm... > *Sent: *31 August 2023 19:09 > *To: *Ingo Schmid <in...@gm...> > *Cc: *pdl...@li... > *Subject: *Re: [Pdl-devel] Debian 12 "-t experimental" install of PDL > > > > Hello Ingo, > > > > much appreciate! Just to ask which perl version is most likely to run the > commands from the First Step PDL Book? > > > > @anyone: which perl version is known to work for that purpose? > > > > Thanks a lot, Thomas > > > > On Thu, Aug 31, 2023 at 11:00 AM Ingo Schmid <in...@gm...> wrote: > > Hi, > > I have not really read through the whole thread, I apologise if this does > not apply to your problem then. > > I have moved most of the PDL stuff to perlbrew which allows a fairly > system independent installation, it's berrybrew on windows, I don't own > Macs. On linux, your distribution most probably provides it, I used apt to > install the software itself. The best part about is, that system (perl) > upgrades don't break your PDL installation. This allowed me to consistently > run things cross platform with no troubles for a long time. > > Run > > > perlbrew install <perl version> > > perlbrew install-cpanm > > perlbrew install-patchperl > > It takes a fair amount of installation time and I guess disk space, > defaults to your home. > > Please consult the perlbrew docs for the exact process, this is I think > the most useful info: https://perlbrew.pl/Perlbrew-and-Friends.html. Once > you are set, use > > > perlbrew switch ... > > > cpanm PDL::Graphics::Simple > > I guess you may need to install a few dependencies that are either > ambiguous or simply missing using cpanm from the same shell. I don't > remember if P:G:S comes with a default backend or if you need to, for > example, install gnuplot. > > I hope this helps. > > Ingo > > On 8/31/23 10:12, ng...@gm... wrote: > > Hello, > > > > would anyone with a working version mind to post some hints on how to > achieve: > > > > cpan PDL::Graphics::Simple > pdl> use PDL::Graphics::Simple > pdl> imag (sin(rvals(200,200)+1)) > > > > on no matter on which platform but with the least number of steps? > > > > Thanks a lot, Thomas > > > > On Wed, Aug 30, 2023 at 4:51 PM William Schmidt < > t.w...@gm...> wrote: > > 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 <ng...@gm...> 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* > cpan *graphics 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...@li... > https://lists.sourceforge.net/lists/listinfo/pdl-devel > > > > _______________________________________________ > > pdl-devel mailing list > > pdl...@li... > > https://lists.sourceforge.net/lists/listinfo/pdl-devel > > _______________________________________________ > pdl-devel mailing list > pdl...@li... > https://lists.sourceforge.net/lists/listinfo/pdl-devel > > > > > |
From: Ed . <ej...@ho...> - 2023-09-01 22:47:52
|
Hi Thomas, You will want to install Term::ReadKey and probably Term::ReadLine::Gnu to have a nicer, more interactive perldl. I don’t use pdl2 myself, but it did tell you what it needs to run if you want to use it. Also, Alien::Gnuplot only installs (or checks for) actual gnuplot. If you want the PDL interface to it, which PDL::Graphics::Simple wraps around, you need to install PDL::Graphics::Gnuplot. This would solve the thing PDL::Graphics::Simple was telling you: “Sorry, all known plotting engines failed. Install one and try again.” Please read https://metacpan.org/pod/PDL::Graphics::Simple#SUPPORTED-GRAPHICS-ENGINES Best regards, Ed From: ng...@gm...<mailto:ng...@gm...> Sent: 01 September 2023 18:10 To: Ed .<mailto:ej...@ho...> Cc: Ingo Schmid<mailto:in...@gm...>; pdl...@li...<mailto:pdl...@li...> Subject: Re: [Pdl-devel] Debian 12 "-t experimental" install of PDL Hello Ed, as I understand, there a different options to get First Steps from the PDL book to work. I have adopted the approach using perlbrew and cpanm as they seem the most stable. Please find below the sequence of commands issued and the final error messages under Ubuntu. I used the same approach on three different Linux distributions (Debian, Ubuntu, Arch) with the same result. Is there any chance to reproduce the problem and look into it? Thanks a lot, Thomas # idea: install PDL piggyback from CPAN under perlbrew perlbrew init # change prompt in .profile, .bashrc perlbrew install perl-5.38.0 perlbrew install-cpanm perlbrew install-patchperl perlbrew switch perl-5.38.0 cpanm Alien::Gnuplot # first ...OK cpanm PDL::Graphics::Simple # second ...OK Ubuntu: ~ $ pdl2 pdl2: Devel::REPL version 1.003011 not found, running '/home/th6mas/perl5/perlbrew/perls/perl-5.38.0/bin/perldl' instead... perlDL shell v1.357 PDL comes with ABSOLUTELY NO WARRANTY. For details, see the file 'COPYING' in the PDL distribution. This is free software and you are welcome to redistribute it under certain conditions, see the same file for details. ReadLines, NiceSlice, MultiLines enabled Reading PDL/default.perldlrc... WARNING: Error loading PDL: 'Can't locate Term/ReadKey.pm in @INC (you may need to install the Term::ReadKey module) (@INC entries checked: /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/lib/site_perl/5.38.0/x86_64-linux /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/lib/site_perl/5.38.0 /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/lib/5.38.0/x86_64-linux /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/lib/5.38.0) at /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/lib/site_perl/5.38.0/x86_64-linux/PDL/Doc/Perldl.pm line 52. BEGIN failed--compilation aborted at /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/lib/site_perl/5.38.0/x86_64-linux/PDL/Doc/Perldl.pm line 52. Compilation failed in require at /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/lib/site_perl/5.38.0/x86_64-linux/PDL/default.perldlrc line 37. BEGIN failed--compilation aborted at /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/lib/site_perl/5.38.0/x86_64-linux/PDL/default.perldlrc line 37. Compilation failed in require at (eval 14) line 1. ' - trying blib. WARNING: PDL startup not found only plain perl available Note: AutoLoader not enabled ('use PDL::AutoLoader' recommended) perl> use PDL::Graphics::Simple Can't locate PDL/Graphics/PGPLOT/Window.pm in @INC (you may need to install the PDL::Graphics::PGPLOT::Window module) (@INC entries checked: /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/lib/site_perl/5.38.0/x86_64-linux /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/lib/site_perl/5.38.0 /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/lib/5.38.0/x86_64-linux /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/lib/5.38.0) at /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/lib/site_perl/5.38.0/PDL/Graphics/Simple/PGPLOT.pm line 28, <STDIN> line 1. perl> imag (sin(rvals(200,200)+1)) Sorry, all known plotting engines failed. Install one and try again. at /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/lib/site_perl/5.38.0/PDL/Graphics/Simple.pm line 434, <STDIN> line 2. PDL::Graphics::Simple::new("PDL::Graphics::Simple") called at /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/lib/site_perl/5.38.0/PDL/Graphics/Simple.pm line 389 PDL::Graphics::Simple::pgswin() called at /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/lib/site_perl/5.38.0/PDL/Graphics/Simple.pm line 1262 PDL::Graphics::Simple::_global_or_new() called at /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/lib/site_perl/5.38.0/PDL/Graphics/Simple.pm line 1151 PDL::Graphics::Simple::imag(PDL=SCALAR(0x563dd1c9aca0)) called at (eval 50) line 1 eval 'imag (sin(rvals(200,200)+1)) ' called at (eval 36) line 6 main::eval_and_report("imag (sin(rvals(200,200)+1))\x{a}") called at /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/bin/perldl line 618 main::process_input() called at /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/bin/perldl line 638 eval {...} called at /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/bin/perldl line 638 require /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/bin/perldl called at /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/bin/pdl2 line 27 main::BEGIN() called at /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/bin/pdl2 line 33 eval {...} called at /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/bin/pdl2 line 33 perl> quit On Fri, Sep 1, 2023 at 4:56 PM Ed . <ej...@ho...<mailto:ej...@ho...>> wrote: Please just try with the latest (Perl 5.38, PDL 2.084), and report any problems? Best regards, Ed From: ng...@gm...<mailto:ng...@gm...> Sent: 31 August 2023 19:09 To: Ingo Schmid<mailto:in...@gm...> Cc: pdl...@li...<mailto:pdl...@li...> Subject: Re: [Pdl-devel] Debian 12 "-t experimental" install of PDL Hello Ingo, much appreciate! Just to ask which perl version is most likely to run the commands from the First Step PDL Book? @anyone: which perl version is known to work for that purpose? Thanks a lot, Thomas On Thu, Aug 31, 2023 at 11:00 AM Ingo Schmid <in...@gm...<mailto:in...@gm...>> wrote: Hi, I have not really read through the whole thread, I apologise if this does not apply to your problem then. I have moved most of the PDL stuff to perlbrew which allows a fairly system independent installation, it's berrybrew on windows, I don't own Macs. On linux, your distribution most probably provides it, I used apt to install the software itself. The best part about is, that system (perl) upgrades don't break your PDL installation. This allowed me to consistently run things cross platform with no troubles for a long time. Run > perlbrew install <perl version> > perlbrew install-cpanm > perlbrew install-patchperl It takes a fair amount of installation time and I guess disk space, defaults to your home. Please consult the perlbrew docs for the exact process, this is I think the most useful info: https://perlbrew.pl/Perlbrew-and-Friends.html. Once you are set, use > perlbrew switch ... > cpanm PDL::Graphics::Simple I guess you may need to install a few dependencies that are either ambiguous or simply missing using cpanm from the same shell. I don't remember if P:G:S comes with a default backend or if you need to, for example, install gnuplot. I hope this helps. Ingo On 8/31/23 10:12, ng...@gm...<mailto:ng...@gm...> wrote: Hello, would anyone with a working version mind to post some hints on how to achieve: cpan PDL::Graphics::Simple pdl> use PDL::Graphics::Simple pdl> imag (sin(rvals(200,200)+1)) on no matter on which platform but with the least number of steps? Thanks a lot, Thomas On Wed, Aug 30, 2023 at 4:51 PM William Schmidt <t.w...@gm...<mailto:t.w...@gm...>> wrote: 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 <ng...@gm...<mailto:ng...@gm...>> 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 cpan graphics 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...@li...<mailto:pdl...@li...> https://lists.sourceforge.net/lists/listinfo/pdl-devel _______________________________________________ pdl-devel mailing list pdl...@li...<mailto:pdl...@li...> https://lists.sourceforge.net/lists/listinfo/pdl-devel _______________________________________________ pdl-devel mailing list pdl...@li...<mailto:pdl...@li...> https://lists.sourceforge.net/lists/listinfo/pdl-devel |
From: <ng...@gm...> - 2023-09-01 17:10:39
|
Hello Ed, as I understand, there a different options to get First Steps from the PDL book to work. I have adopted the approach using perlbrew and cpanm as they seem the most stable. Please find below the sequence of commands issued and the final error messages under Ubuntu. I used the same approach on three different Linux distributions (Debian, Ubuntu, Arch) with the same result. Is there any chance to reproduce the problem and look into it? Thanks a lot, Thomas # idea: install PDL piggyback from CPAN under perlbrew perlbrew init # change prompt in .profile, .bashrc perlbrew install perl-5.38.0 perlbrew install-cpanm perlbrew install-patchperl perlbrew switch perl-5.38.0 cpanm Alien::Gnuplot # first ...OK cpanm PDL::Graphics::Simple # second ...OK Ubuntu: ~ $ pdl2 pdl2: Devel::REPL version 1.003011 not found, running '/home/th6mas/perl5/perlbrew/perls/perl-5.38.0/bin/perldl' instead... perlDL shell v1.357 PDL comes with ABSOLUTELY NO WARRANTY. For details, see the file 'COPYING' in the PDL distribution. This is free software and you are welcome to redistribute it under certain conditions, see the same file for details. ReadLines, NiceSlice, MultiLines enabled Reading PDL/default.perldlrc... WARNING: Error loading PDL: 'Can't locate Term/ReadKey.pm in @INC (you may need to install the Term::ReadKey module) (@INC entries checked: /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/lib/site_perl/5.38.0/x86_64-linux /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/lib/site_perl/5.38.0 /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/lib/5.38.0/x86_64-linux /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/lib/5.38.0) at /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/lib/site_perl/5.38.0/x86_64-linux/PDL/Doc/Perldl.pm line 52. BEGIN failed--compilation aborted at /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/lib/site_perl/5.38.0/x86_64-linux/PDL/Doc/Perldl.pm line 52. Compilation failed in require at /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/lib/site_perl/5.38.0/x86_64-linux/PDL/default.perldlrc line 37. BEGIN failed--compilation aborted at /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/lib/site_perl/5.38.0/x86_64-linux/PDL/default.perldlrc line 37. Compilation failed in require at (eval 14) line 1. ' - trying blib. WARNING: PDL startup not found only plain perl available Note: AutoLoader not enabled ('use PDL::AutoLoader' recommended) perl> use PDL::Graphics::Simple Can't locate PDL/Graphics/PGPLOT/Window.pm in @INC (you may need to install the PDL::Graphics::PGPLOT::Window module) (@INC entries checked: /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/lib/site_perl/5.38.0/x86_64-linux /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/lib/site_perl/5.38.0 /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/lib/5.38.0/x86_64-linux /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/lib/5.38.0) at /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/lib/site_perl/5.38.0/PDL/Graphics/Simple/PGPLOT.pm line 28, <STDIN> line 1. perl> imag (sin(rvals(200,200)+1)) Sorry, all known plotting engines failed. Install one and try again. at /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/lib/site_perl/5.38.0/PDL/Graphics/Simple.pm line 434, <STDIN> line 2. PDL::Graphics::Simple::new("PDL::Graphics::Simple") called at /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/lib/site_perl/5.38.0/PDL/Graphics/Simple.pm line 389 PDL::Graphics::Simple::pgswin() called at /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/lib/site_perl/5.38.0/PDL/Graphics/Simple.pm line 1262 PDL::Graphics::Simple::_global_or_new() called at /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/lib/site_perl/5.38.0/PDL/Graphics/Simple.pm line 1151 PDL::Graphics::Simple::imag(PDL=SCALAR(0x563dd1c9aca0)) called at (eval 50) line 1 eval 'imag (sin(rvals(200,200)+1)) ' called at (eval 36) line 6 main::eval_and_report("imag (sin(rvals(200,200)+1))\x{a}") called at /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/bin/perldl line 618 main::process_input() called at /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/bin/perldl line 638 eval {...} called at /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/bin/perldl line 638 require /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/bin/perldl called at /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/bin/pdl2 line 27 main::BEGIN() called at /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/bin/pdl2 line 33 eval {...} called at /home/th6mas/perl5/perlbrew/perls/perl-5.38.0/bin/pdl2 line 33 perl> quit On Fri, Sep 1, 2023 at 4:56 PM Ed . <ej...@ho...> wrote: > Please just try with the latest (Perl 5.38, PDL 2.084), and report any > problems? > > > > Best regards, > > Ed > > > > *From: *ng...@gm... > *Sent: *31 August 2023 19:09 > *To: *Ingo Schmid <in...@gm...> > *Cc: *pdl...@li... > *Subject: *Re: [Pdl-devel] Debian 12 "-t experimental" install of PDL > > > > Hello Ingo, > > > > much appreciate! Just to ask which perl version is most likely to run the > commands from the First Step PDL Book? > > > > @anyone: which perl version is known to work for that purpose? > > > > Thanks a lot, Thomas > > > > On Thu, Aug 31, 2023 at 11:00 AM Ingo Schmid <in...@gm...> wrote: > > Hi, > > I have not really read through the whole thread, I apologise if this does > not apply to your problem then. > > I have moved most of the PDL stuff to perlbrew which allows a fairly > system independent installation, it's berrybrew on windows, I don't own > Macs. On linux, your distribution most probably provides it, I used apt to > install the software itself. The best part about is, that system (perl) > upgrades don't break your PDL installation. This allowed me to consistently > run things cross platform with no troubles for a long time. > > Run > > > perlbrew install <perl version> > > perlbrew install-cpanm > > perlbrew install-patchperl > > It takes a fair amount of installation time and I guess disk space, > defaults to your home. > > Please consult the perlbrew docs for the exact process, this is I think > the most useful info: https://perlbrew.pl/Perlbrew-and-Friends.html. Once > you are set, use > > > perlbrew switch ... > > > cpanm PDL::Graphics::Simple > > I guess you may need to install a few dependencies that are either > ambiguous or simply missing using cpanm from the same shell. I don't > remember if P:G:S comes with a default backend or if you need to, for > example, install gnuplot. > > I hope this helps. > > Ingo > > On 8/31/23 10:12, ng...@gm... wrote: > > Hello, > > > > would anyone with a working version mind to post some hints on how to > achieve: > > > > cpan PDL::Graphics::Simple > pdl> use PDL::Graphics::Simple > pdl> imag (sin(rvals(200,200)+1)) > > > > on no matter on which platform but with the least number of steps? > > > > Thanks a lot, Thomas > > > > On Wed, Aug 30, 2023 at 4:51 PM William Schmidt < > t.w...@gm...> wrote: > > 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 <ng...@gm...> 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* > cpan *graphics 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...@li... > https://lists.sourceforge.net/lists/listinfo/pdl-devel > > > > > _______________________________________________ > > pdl-devel mailing list > > pdl...@li... > > https://lists.sourceforge.net/lists/listinfo/pdl-devel > > _______________________________________________ > pdl-devel mailing list > pdl...@li... > https://lists.sourceforge.net/lists/listinfo/pdl-devel > > > |
From: Ed . <ej...@ho...> - 2023-09-01 14:56:23
|
Please just try with the latest (Perl 5.38, PDL 2.084), and report any problems? Best regards, Ed From: ng...@gm...<mailto:ng...@gm...> Sent: 31 August 2023 19:09 To: Ingo Schmid<mailto:in...@gm...> Cc: pdl...@li...<mailto:pdl...@li...> Subject: Re: [Pdl-devel] Debian 12 "-t experimental" install of PDL Hello Ingo, much appreciate! Just to ask which perl version is most likely to run the commands from the First Step PDL Book? @anyone: which perl version is known to work for that purpose? Thanks a lot, Thomas On Thu, Aug 31, 2023 at 11:00 AM Ingo Schmid <in...@gm...<mailto:in...@gm...>> wrote: Hi, I have not really read through the whole thread, I apologise if this does not apply to your problem then. I have moved most of the PDL stuff to perlbrew which allows a fairly system independent installation, it's berrybrew on windows, I don't own Macs. On linux, your distribution most probably provides it, I used apt to install the software itself. The best part about is, that system (perl) upgrades don't break your PDL installation. This allowed me to consistently run things cross platform with no troubles for a long time. Run > perlbrew install <perl version> > perlbrew install-cpanm > perlbrew install-patchperl It takes a fair amount of installation time and I guess disk space, defaults to your home. Please consult the perlbrew docs for the exact process, this is I think the most useful info: https://perlbrew.pl/Perlbrew-and-Friends.html. Once you are set, use > perlbrew switch ... > cpanm PDL::Graphics::Simple I guess you may need to install a few dependencies that are either ambiguous or simply missing using cpanm from the same shell. I don't remember if P:G:S comes with a default backend or if you need to, for example, install gnuplot. I hope this helps. Ingo On 8/31/23 10:12, ng...@gm...<mailto:ng...@gm...> wrote: Hello, would anyone with a working version mind to post some hints on how to achieve: cpan PDL::Graphics::Simple pdl> use PDL::Graphics::Simple pdl> imag (sin(rvals(200,200)+1)) on no matter on which platform but with the least number of steps? Thanks a lot, Thomas On Wed, Aug 30, 2023 at 4:51 PM William Schmidt <t.w...@gm...<mailto:t.w...@gm...>> wrote: 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 <ng...@gm...<mailto:ng...@gm...>> 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 cpan graphics 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...@li...<mailto:pdl...@li...> https://lists.sourceforge.net/lists/listinfo/pdl-devel _______________________________________________ pdl-devel mailing list pdl...@li...<mailto:pdl...@li...> https://lists.sourceforge.net/lists/listinfo/pdl-devel _______________________________________________ pdl-devel mailing list pdl...@li...<mailto:pdl...@li...> https://lists.sourceforge.net/lists/listinfo/pdl-devel |
From: <ng...@gm...> - 2023-08-31 18:09:06
|
Hello Ingo, much appreciate! Just to ask which perl version is most likely to run the commands from the First Step PDL Book? @anyone: which perl version is known to work for that purpose? Thanks a lot, Thomas On Thu, Aug 31, 2023 at 11:00 AM Ingo Schmid <in...@gm...> wrote: > Hi, > > I have not really read through the whole thread, I apologise if this does > not apply to your problem then. > > I have moved most of the PDL stuff to perlbrew which allows a fairly > system independent installation, it's berrybrew on windows, I don't own > Macs. On linux, your distribution most probably provides it, I used apt to > install the software itself. The best part about is, that system (perl) > upgrades don't break your PDL installation. This allowed me to consistently > run things cross platform with no troubles for a long time. > > Run > > > perlbrew install <perl version> > > perlbrew install-cpanm > > perlbrew install-patchperl > It takes a fair amount of installation time and I guess disk space, > defaults to your home. > > Please consult the perlbrew docs for the exact process, this is I think > the most useful info: https://perlbrew.pl/Perlbrew-and-Friends.html. Once > you are set, use > > > perlbrew switch ... > > > cpanm PDL::Graphics::Simple > > I guess you may need to install a few dependencies that are either > ambiguous or simply missing using cpanm from the same shell. I don't > remember if P:G:S comes with a default backend or if you need to, for > example, install gnuplot. > > I hope this helps. > > Ingo > On 8/31/23 10:12, ng...@gm... wrote: > > Hello, > > would anyone with a working version mind to post some hints on how to > achieve: > > cpan PDL::Graphics::Simple > pdl> use PDL::Graphics::Simple > pdl> imag (sin(rvals(200,200)+1)) > > on no matter on which platform but with the least number of steps? > > Thanks a lot, Thomas > > On Wed, Aug 30, 2023 at 4:51 PM William Schmidt < > t.w...@gm...> wrote: > >> 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 <ng...@gm...> 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 >>> cpan graphics 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...@li... >>> https://lists.sourceforge.net/lists/listinfo/pdl-devel >>> >> > > _______________________________________________ > pdl-devel mailing lis...@li...https://lists.sourceforge.net/lists/listinfo/pdl-devel > > _______________________________________________ > pdl-devel mailing list > pdl...@li... > https://lists.sourceforge.net/lists/listinfo/pdl-devel > |
From: Ingo S. <in...@gm...> - 2023-08-31 08:59:21
|
Hi, I have not really read through the whole thread, I apologise if this does not apply to your problem then. I have moved most of the PDL stuff to perlbrew which allows a fairly system independent installation, it's berrybrew on windows, I don't own Macs. On linux, your distribution most probably provides it, I used apt to install the software itself. The best part about is, that system (perl) upgrades don't break your PDL installation. This allowed me to consistently run things cross platform with no troubles for a long time. Run > perlbrew install <perl version> > perlbrew install-cpanm > perlbrew install-patchperl|| || ||It takes a fair amount of installation time and I guess disk space, defaults to your home. Please consult the perlbrew docs for the exact process, this is I think the most useful info: https://perlbrew.pl/Perlbrew-and-Friends.html. Once you are set, use > perlbrew switch ... > cpanm PDL::Graphics::Simple I guess you may need to install a few dependencies that are either ambiguous or simply missing using cpanm from the same shell. I don't remember if P:G:S comes with a default backend or if you need to, for example, install gnuplot. I hope this helps. Ingo On 8/31/23 10:12, ng...@gm... wrote: > Hello, > > would anyone with a working version mind to post some hints on how to > achieve: > > cpan PDL::Graphics::Simple > pdl> use PDL::Graphics::Simple > pdl> imag (sin(rvals(200,200)+1)) > > on no matter on which platform but with the least number of steps? > > Thanks a lot, Thomas > > On Wed, Aug 30, 2023 at 4:51 PM William Schmidt > <t.w...@gm...> wrote: > > 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 <ng...@gm...> 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 > > > cpan > > > graphics 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 <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...@li... > https://lists.sourceforge.net/lists/listinfo/pdl-devel > > > > _______________________________________________ > pdl-devel mailing list > pdl...@li... > https://lists.sourceforge.net/lists/listinfo/pdl-devel |
From: <ng...@gm...> - 2023-08-31 08:12:47
|
Hello, would anyone with a working version mind to post some hints on how to achieve: cpan PDL::Graphics::Simple pdl> use PDL::Graphics::Simple pdl> imag (sin(rvals(200,200)+1)) on no matter on which platform but with the least number of steps? Thanks a lot, Thomas On Wed, Aug 30, 2023 at 4:51 PM William Schmidt <t.w...@gm...> wrote: > 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 <ng...@gm...> 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...@li... >> https://lists.sourceforge.net/lists/listinfo/pdl-devel >> > |
From: <ng...@gm...> - 2023-08-30 17:22:26
|
Hello Will (perlboy_emeritus), whilst I also have an iMac/Montonery, I went down another road aside the "recommended" Debian one not bothering about version numbers: Arch Linux running Gnome/Wayland. I installed the packages using yay as listed below. All seems to work fine until here: pdl> use PDL::Graphics::Simple pdl> imag (sin(rvals(200,200)+1)) Trying pgplot (PDL::Graphics::PGPLOT::Window)...Error in tempfile() using template pgg_pgplot_XXXX: Could not create temp file pgg_pgplot_pvTW: Permission denied at /home/th6mas/perl5/lib/perl5/PDL/Graphics/Simple/PGPLOT.pm line 50. Looking at the code in Line 50: use File::Temp qw/tempfile/; .... # Module loaded OK, now try to extract valid devices from it my ($fh,$tf) = tempfile('pgg_pgplot_XXXX'); close $fh; I thought this should be easy to fix. Any hits are much appreciated. I have perused https://www.perlmonks.org/?node_id=11153860 and will indulge when Arch fails, too. Regards, Thomas aur/perl-pdl 2.081-1 (+7 0.00) (Orphaned) (Out-of-date: 2023-06-12) The Perl Data Language, a perl extension designed for scientific and bulk numeric data processing aur/pgplot 5.2.2-7 (+18 0.42) Fortran- or C-callable, device-independent graphics package for making simple scientific graphs. aur/perl-pgplot 2.28-1 (+0 0.00) (Orphaned) PGPLOT module for Perl # aur/perl-graphics-gnuplotif 1.8-2 (+0 0.00) (Installed) A dynamic Perl interface to gnuplot # aur/perl-alien-gnuplot 1.042-1 (+1 0.03) (Installed) Find and verify functionality of the gnuplot executable. On Wed, Aug 30, 2023 at 4:51 PM William Schmidt <t.w...@gm...> wrote: > 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 <ng...@gm...> 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...@li... >> https://lists.sourceforge.net/lists/listinfo/pdl-devel >> > |
From: William S. <t.w...@gm...> - 2023-08-30 14:51:53
|
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 <ng...@gm...> 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...@li... > https://lists.sourceforge.net/lists/listinfo/pdl-devel > |