Perl pdl graphics, fails to show image as specified in documentation

245 Views Asked by At

For those interested in solution please skip to continuation and solution.
So, I am using Strawberry Perl 5.32.1.1-64, from zip, no msi, under Windows 11. Want to use pdl. The information on the internet over that issue is very poor and the support as well. I've seen others having similar problem, but didn't find a solution.
Problem: According to first steps like specified here https://pdl.perl.org/?page=FirstSteps Then I did this as specified on the site:

cpan PDL::Graphics::Simple

So, when starting that commands again I get these one for PDL::Graphics::Simple:

pdl> use PDL::Graphics::Simple
PDL::Graphics::Simple::register: PDL::Graphics::Simple::Prima is out of date - winging it at 
perlhome/perl/site/lib/PDL/Graphics/Simple.pm line 
1397, <DATA> line 209.

How exactly a fresh install from cpan is out of date?... I did not notice any difference with invoking or without invoking use PDL::AutoLoader
Then for img command, failed:

pdl>  imag (sin(rvals(200,200)+1))                                                                                                                                                                                                                                                              
Trying gnuplot (PDL::Graphics::Gnuplot)...nope
Trying pgplot (PDL::Graphics::PGPLOT::Window)...nope
Trying plplot (PDL::Graphics::PLplot)...nope
Trying prima (PDL::Graphics::Prima)...nope
Sorry, all known plotting engines failed.  Install one and try again.

Tried to install install the plots, and every single install failed, even after installing gnuplot itself. I am having NO problems using gnuplot in Julia, all works there exactly as specified in documentation. I literally want to make Perl to work. But could not make Strawberry Perl nor ActiveState Perl working with pdl. Similar topics on stackoverflow did not help much.
The continuation and solution is here

0

There are 0 best solutions below