Re: [Pdl-general] pgplot instructions for Big Sur macOS

2021-02-15 Thread Ed .
Hi Karl,

GitHub Actions are all explained in the link I gave in my previous message šŸ˜Š 
(spoiler: itā€™s a classic example of cloud computing)

By ā€œmore modernā€ Iā€™m referring to one of the many other possibilities like 
PLplot, Gnuplot, Prima ā€“ of the ones that already have PDL support (and that 
have better RGB support, among other features ā€“ see 
https://en.wikipedia.org/wiki/PGPLOT for info on e.g. PG2PLplot, a transition 
library)! The harm is in needing to ensure that ideally all of the PDL 
distribution (which has 99 separate components) works, in every release, which 
is a major task for the maintainer.

A good solution would be to finally start pulling ā€œPDLā€ the distribution into 
some of its component parts, as has long been discussed: for instance PDL::Core 
with maybe just the REPLs and the packages imported by ā€œuse PDLā€ would be a 
separate distribution; the various Proj libraries could be a separate 
component; the PGPLOT another; maybe GSL another one. That way if 
PDL::Graphics::PGPLOT needs fixing, that can be done (and released) 
independently.

Best regards,
Ed

From: Karl Glazebrook
Sent: 16 February 2021 07:23
To: Ed .
Cc: pdl-general@lists.sourceforge.net
Subject: Re: pgplot instructions for Big Sur macOS

Right. I took a look at that yml file and I can sort of see what is going on. 
On what machine is that CI stuff being run?

Re FreeBSD. Are there many users? I have no idea how ports files would work on 
that distribution, I havenā€™t even learned how to do this on Macports or 
Homebrew (though I should), but I can certainly advise someone on the command 
line tricks needed to build it.

PGPLOT is not really ā€˜in PDLā€™. The module PDL::Graphics::PGPLOT is perl only, 
and depends on PGPLOT module being present and working - which is not part of 
PDL (and in fact predates it). I see no harm in leaving it in?

I would be interested to know what you mean by ā€˜more modern alternativesā€™. Such 
as?

Karl




On 16 Feb 2021, at 1:15 pm, Ed . mailto:ej...@hotmail.com>> 
wrote:

Whatever is specified in any ā€œ.github/workflows/*.ymlā€! 
https://docs.github.com/en/actions

By the way, I think Iā€™m about to make PGPLOT work somewhat better on FreeBSD in 
the imminent next version. The FreeBSD port says itā€™s not got a maintainer, and 
theyā€™re asking for volunteers. Karl, if youā€™re keen on keeping PGPLOT going, 
that might be useful? I spun up a FreeBSD virtual machine this evening, there 
are many tutorials.

One other possibility is for PGPLOT to get dropped from PDL, because itā€™s 
taking up a fair bit of effort, for not a great deal of benefit given there are 
various more modern alternatives. Iā€™m reluctant, but there are only so many 
hours in the day. What do others think?

Best regards,
Ed

From: Karl Glazebrook
Sent: 16 February 2021 01:31
To: Ed .
Cc: pdl-general@lists.sourceforge.net
Subject: Re: pgplot instructions for Big Sur macOS

OK . ā€¦ in this case what ā€˜actionā€™ is actually run?




On 16 Feb 2021, at 12:25 pm, Ed . mailto:ej...@hotmail.com>> 
wrote:

CI is ā€œcontinuous integrationā€, run every time a commit is pushed to the server 
(or a pull request is created or updated) to give instant feedback on problems. 
GitHub Actions is the new-ish service provided by GitHub for this. Itā€™s much 
better than Travis now is, given Travis are deliberately turning off their 
open-source support.

GitHub actions are configured in the files under .github. There are tutorials 
which are very good, but the starting point we have works, which always helps šŸ˜Š

From: Karl Glazebrook
Sent: 16 February 2021 01:22
To: Ed .
Cc: pdl-general@lists.sourceforge.net
Subject: Re: pgplot instructions for Big Sur macOS


Hi Ed

Sorry for the dumb question - can you explain what ' GitHub Action CIā€™ is? Do I 
need to know about it?

Karl





On 15 Feb 2021, at 4:26 pm, Ed . mailto:ej...@hotmail.com>> 
wrote:

Iā€™ve updated the CPAN PGPLOT somewhat, including adding GitHub Action CI. I 
tried to make it also test on MacOS by using your instructions, but I donā€™t 
know enough about the MacOS specifics. Iā€™ve left the attempt on a branch, 
hopefully a Mac expert (Karl? šŸ˜Š) can fix it: 
https://github.com/PDLPorters/perl5-PGPLOT/tree/macos-ci

From: Karl Glazebrook
Sent: 14 January 2021 00:26
To: Ed .
Cc: pdl-general@lists.sourceforge.net
Subject: Re: pgplot instructions for Big Sur macOS

Hi all

An update on this. The config there uses Appleā€™s CC, but I have now come across 
some random segvā€™s that seem to be avoided if one uses GCC 11 and GFORTRAN 11.

So I would recommend editing gfortran_cc_BigSur.conf from that patch to use GCC 
- and take 

Re: [Pdl-general] pgplot instructions for Big Sur macOS

2021-02-15 Thread Karl Glazebrook via pdl-general
Right. I took a look at that yml file and I can sort of see what is going on. 
On what machine is that CI stuff being run?

Re FreeBSD. Are there many users? I have no idea how ports files would work on 
that distribution, I havenā€™t even learned how to do this on Macports or 
Homebrew (though I should), but I can certainly advise someone on the command 
line tricks needed to build it.

PGPLOT is not really ā€˜in PDLā€™. The module PDL::Graphics::PGPLOT is perl only, 
and depends on PGPLOT module being present and working - which is not part of 
PDL (and in fact predates it). I see no harm in leaving it in?

I would be interested to know what you mean by ā€˜more modern alternativesā€™. Such 
as?

Karl



> On 16 Feb 2021, at 1:15 pm, Ed .  wrote:
> 
> Whatever is specified in any ā€œ.github/workflows/*.ymlā€! 
> https://docs.github.com/en/actions 
>  
> By the way, I think Iā€™m about to make PGPLOT work somewhat better on FreeBSD 
> in the imminent next version. The FreeBSD port says itā€™s not got a 
> maintainer, and theyā€™re asking for volunteers. Karl, if youā€™re keen on 
> keeping PGPLOT going, that might be useful? I spun up a FreeBSD virtual 
> machine this evening, there are many tutorials.
>  
> One other possibility is for PGPLOT to get dropped from PDL, because itā€™s 
> taking up a fair bit of effort, for not a great deal of benefit given there 
> are various more modern alternatives. Iā€™m reluctant, but there are only so 
> many hours in the day. What do others think?
>  
> Best regards,
> Ed
>  
> From: Karl Glazebrook 
> Sent: 16 February 2021 01:31
> To: Ed . 
> Cc: pdl-general@lists.sourceforge.net 
> 
> Subject: Re: pgplot instructions for Big Sur macOS
>  
> OK . ā€¦ in this case what ā€˜actionā€™ is actually run?
>  
> 
> 
> On 16 Feb 2021, at 12:25 pm, Ed .  > wrote:
>  
> CI is ā€œcontinuous integrationā€, run every time a commit is pushed to the 
> server (or a pull request is created or updated) to give instant feedback on 
> problems. GitHub Actions is the new-ish service provided by GitHub for this. 
> Itā€™s much better than Travis now is, given Travis are deliberately turning 
> off their open-source support.
>  
> GitHub actions are configured in the files under .github. There are tutorials 
> which are very good, but the starting point we have works, which always helps 
> šŸ˜Š
>  
> From: Karl Glazebrook 
> Sent: 16 February 2021 01:22
> To: Ed . 
> Cc: pdl-general@lists.sourceforge.net 
> 
> Subject: Re: pgplot instructions for Big Sur macOS
>  
>  
> Hi Ed
>  
> Sorry for the dumb question - can you explain what ' GitHub Action CIā€™ is? Do 
> I need to know about it?
>  
> Karl
>  
> 
> 
> 
> On 15 Feb 2021, at 4:26 pm, Ed .  > wrote:
>  
> Iā€™ve updated the CPAN PGPLOT somewhat, including adding GitHub Action CI. I 
> tried to make it also test on MacOS by using your instructions, but I donā€™t 
> know enough about the MacOS specifics. Iā€™ve left the attempt on a branch, 
> hopefully a Mac expert (Karl? šŸ˜Š) can fix it: 
> https://github.com/PDLPorters/perl5-PGPLOT/tree/macos-ci 
> 
>  
> From: Karl Glazebrook 
> Sent: 14 January 2021 00:26
> To: Ed . 
> Cc: pdl-general@lists.sourceforge.net 
> 
> Subject: Re: pgplot instructions for Big Sur macOS
>  
> Hi all
>  
> An update on this. The config there uses Appleā€™s CC, but I have now come 
> across some random segvā€™s that seem to be avoided if one uses GCC 11 and 
> GFORTRAN 11.
>  
> So I would recommend editing gfortran_cc_BigSur.conf from that patch to use 
> GCC - and take it from http://hpc.sourceforge.net 
>  (which is where I got GFORTRAN)
>  
> Karl
>  
> 
> 
> 
> 
> On 7 Jan 2021, at 4:57 pm, Karl Glazebrook  > wrote:
>  
> Here you go Ed et al:
> 
> This below installs a fully functioning pgplot on my Big Sur ARM Mac in 
> /usr/local/pgplot. I expect it will also work the same on Big Sur Intel. You 
> need to have prerequisites:
> 1. Macports X11 installed in the usual place under /opt/ā€¦  (I have 
> xorg-server 1.20.10)
> 2. gfortran installed in /usr/local/... (I have version '11.0.0 20201128 
> (experimental)ā€™ installed from http://hpc.sourceforge.net 
> )
> Things are dynamically linked.
> 
> 
> # Run these shell commands to install pgplot
> curl --remote-name 
> https://astronomy.swin.edu.au/~karl/pgplot/pgplot531.tar.gz 
> 
> curl --remote-name 
> https://astronomy.swin.edu.au/~karl/pgplot/pgplotpatch.diff 
> 

Re: [Pdl-general] [Pdl-devel] PDL 2.026 released to CPAN

2021-02-15 Thread Luis Mochan
Just intalled PDL 2-026 using perlbrew/cpanm under perl
5.32.1. Haven't tested it yet, but it didn't complain.
Regards,
Luis


--

  o
W. Luis MochƔn,  | tel:(52)(777)329-1734 /<(*)
Instituto de Ciencias FĆ­sicas, UNAM  | fax:(52)(777)317-5388 `>/   /\
Av. Universidad s/n CP 62210 |   (*)/\/  \
Cuernavaca, Morelos, MĆ©xico  | moc...@fis.unam.mx   /\_/\__/
GPG: 791EB9EB, C949 3F81 6D9B 1191 9A16  C2DF 5F0A C52B 791E B9EB


___
pdl-general mailing list
pdl-general@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pdl-general


Re: [Pdl-general] [Pdl-devel] PDL 2.026 released to CPAN

2021-02-15 Thread Luis Mochan
Thanks for the announcement and for all the work!
Luis


On Mon, Feb 15, 2021 at 04:01:05PM -0700, Derek Lamb wrote:
> Dear PDL users,
>
> Ed recently released PDL 2.026 to CPAN.  (https://metacpan.org/release/PDL)
>
> There are several notable changes since the last announcement to this email 
> list, of PDL 2.020 on 2019-12-11.  Thanks go to @mohawk2 (Ed), @wmlb (Luis 
> MochƔn), @newville (Matt Newville), and @sebastic (Bas Couwenberg) for their 
> contributions, as well as to the users who filed bug reports.
>
> User-visible changes:
>
> * Refactor the documentation system to handle multiple functions with the 
> same name (e.g., "max") and some indication from 'apropos' as to which module 
> the function is in;
>
> * Added function PDL::IO::Pic::imageformat to determine the format of an 
> image file;
>
> * Fixed PDL::IO::FITS::wfits so that explicitly setting BITPIX works;
>
> * Fixed PDL::IO::FITS::rfits handling of BLANK values in some Rice-compressed 
> images;
>
> * Removed the extrapolation code from PDL::GSL::INTERP that stopped working 
> in recent GSL versions;
>
> * Many additions to the PDL::Matlab documentation.
>
> Under-the-hood changes:
>
> * Many fixes to spelling in documentation and code;
>
> * Fixes to various build components including compilation, tests, and 
> diagnostic information;
>
> * Many simplifications and fixes to POD markup.
>
> Please report any issues you find to the mailing list (good), or create an 
> issue (better) or a pull request (best!) on GitHub.  Thanks, and Happy 
> PDL-ing!
>
> Derek
>
> ___
> pdl-devel mailing list
> pdl-de...@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/pdl-devel

--

  o
W. Luis MochƔn,  | tel:(52)(777)329-1734 /<(*)
Instituto de Ciencias FĆ­sicas, UNAM  | fax:(52)(777)317-5388 `>/   /\
Av. Universidad s/n CP 62210 |   (*)/\/  \
Cuernavaca, Morelos, MĆ©xico  | moc...@fis.unam.mx   /\_/\__/
GPG: 791EB9EB, C949 3F81 6D9B 1191 9A16  C2DF 5F0A C52B 791E B9EB


___
pdl-general mailing list
pdl-general@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pdl-general


Re: [Pdl-general] pgplot instructions for Big Sur macOS

2021-02-15 Thread Ed .
Whatever is specified in any ā€œ.github/workflows/*.ymlā€! 
https://docs.github.com/en/actions

By the way, I think Iā€™m about to make PGPLOT work somewhat better on FreeBSD in 
the imminent next version. The FreeBSD port says itā€™s not got a maintainer, and 
theyā€™re asking for volunteers. Karl, if youā€™re keen on keeping PGPLOT going, 
that might be useful? I spun up a FreeBSD virtual machine this evening, there 
are many tutorials.

One other possibility is for PGPLOT to get dropped from PDL, because itā€™s 
taking up a fair bit of effort, for not a great deal of benefit given there are 
various more modern alternatives. Iā€™m reluctant, but there are only so many 
hours in the day. What do others think?

Best regards,
Ed

From: Karl Glazebrook
Sent: 16 February 2021 01:31
To: Ed .
Cc: pdl-general@lists.sourceforge.net
Subject: Re: pgplot instructions for Big Sur macOS

OK . ā€¦ in this case what ā€˜actionā€™ is actually run?



On 16 Feb 2021, at 12:25 pm, Ed . mailto:ej...@hotmail.com>> 
wrote:

CI is ā€œcontinuous integrationā€, run every time a commit is pushed to the server 
(or a pull request is created or updated) to give instant feedback on problems. 
GitHub Actions is the new-ish service provided by GitHub for this. Itā€™s much 
better than Travis now is, given Travis are deliberately turning off their 
open-source support.

GitHub actions are configured in the files under .github. There are tutorials 
which are very good, but the starting point we have works, which always helps šŸ˜Š

From: Karl Glazebrook
Sent: 16 February 2021 01:22
To: Ed .
Cc: pdl-general@lists.sourceforge.net
Subject: Re: pgplot instructions for Big Sur macOS


Hi Ed

Sorry for the dumb question - can you explain what ' GitHub Action CIā€™ is? Do I 
need to know about it?

Karl




On 15 Feb 2021, at 4:26 pm, Ed . mailto:ej...@hotmail.com>> 
wrote:

Iā€™ve updated the CPAN PGPLOT somewhat, including adding GitHub Action CI. I 
tried to make it also test on MacOS by using your instructions, but I donā€™t 
know enough about the MacOS specifics. Iā€™ve left the attempt on a branch, 
hopefully a Mac expert (Karl? šŸ˜Š) can fix it: 
https://github.com/PDLPorters/perl5-PGPLOT/tree/macos-ci

From: Karl Glazebrook
Sent: 14 January 2021 00:26
To: Ed .
Cc: pdl-general@lists.sourceforge.net
Subject: Re: pgplot instructions for Big Sur macOS

Hi all

An update on this. The config there uses Appleā€™s CC, but I have now come across 
some random segvā€™s that seem to be avoided if one uses GCC 11 and GFORTRAN 11.

So I would recommend editing gfortran_cc_BigSur.conf from that patch to use GCC 
- and take it from http://hpc.sourceforge.net 
(which is where I got GFORTRAN)

Karl





On 7 Jan 2021, at 4:57 pm, Karl Glazebrook 
mailto:karlglazebr...@mac.com>> wrote:

Here you go Ed et al:

This below installs a fully functioning pgplot on my Big Sur ARM Mac in 
/usr/local/pgplot. I expect it will also work the same on Big Sur Intel. You 
need to have prerequisites:
1. Macports X11 installed in the usual place under /opt/ā€¦  (I have xorg-server 
1.20.10)
2. gfortran installed in /usr/local/... (I have version '11.0.0 20201128 
(experimental)ā€™ installed from 
http://hpc.sourceforge.net)
Things are dynamically linked.


# Run these shell commands to install pgplot
curl --remote-name https://astronomy.swin.edu.au/~karl/pgplot/pgplot531.tar.gz
curl --remote-name https://astronomy.swin.edu.au/~karl/pgplot/pgplotpatch.diff
tar xvf pgplot531.tar.gz
cd pgplotsrc
patch  -p 1 -i ../pgplotpatch.diff
SRC=$PWD
sudo mkdir /usr/local/pgplot
cd  /usr/local/pgplot
sudo cp $SRC/drivers.list .
sudo $SRC/makemake $SRC/ darwin gfortran_cc_BigSur
sudo make
sudo make clean
./pgdemo1 # Works



I hope that can be passed on to the Macports, Homebrew people to take what 
tricks they need from this. I guess the patch and the latest hard to find 
pgplot tarball is the most important thing. The patch selects drivers that work 
and are relevant today, fixes up the makefile generator, and changes one line 
of code in the png driver to avoid an error.

cheers

Karl





On 6 Jan 2021, at 2:18 am, Ed . mailto:ej...@hotmail.com>> 
wrote:

Hi Karl,

Could you capture on here what lines of code etc you changed, hopefully along 
with all the software versions you used etc, so that ideally someone else 
arriving fresh could do exactly what you did and get the same results?

Best regards,
Ed


___
pdl-general mailing list
pdl-general@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pdl-general


Re: [Pdl-general] pgplot instructions for Big Sur macOS

2021-02-15 Thread Karl Glazebrook via pdl-general
OK . ā€¦ in this case what ā€˜actionā€™ is actually run?


> On 16 Feb 2021, at 12:25 pm, Ed .  wrote:
> 
> CI is ā€œcontinuous integrationā€, run every time a commit is pushed to the 
> server (or a pull request is created or updated) to give instant feedback on 
> problems. GitHub Actions is the new-ish service provided by GitHub for this. 
> Itā€™s much better than Travis now is, given Travis are deliberately turning 
> off their open-source support.
>  
> GitHub actions are configured in the files under .github. There are tutorials 
> which are very good, but the starting point we have works, which always helps 
> šŸ˜Š
>  
> From: Karl Glazebrook 
> Sent: 16 February 2021 01:22
> To: Ed . 
> Cc: pdl-general@lists.sourceforge.net 
> 
> Subject: Re: pgplot instructions for Big Sur macOS
>  
>  
> Hi Ed
>  
> Sorry for the dumb question - can you explain what ' GitHub Action CIā€™ is? Do 
> I need to know about it?
>  
> Karl
>  
> 
> 
> On 15 Feb 2021, at 4:26 pm, Ed .  > wrote:
>  
> Iā€™ve updated the CPAN PGPLOT somewhat, including adding GitHub Action CI. I 
> tried to make it also test on MacOS by using your instructions, but I donā€™t 
> know enough about the MacOS specifics. Iā€™ve left the attempt on a branch, 
> hopefully a Mac expert (Karl? šŸ˜Š) can fix it: 
> https://github.com/PDLPorters/perl5-PGPLOT/tree/macos-ci 
> 
>  
> From: Karl Glazebrook 
> Sent: 14 January 2021 00:26
> To: Ed . 
> Cc: pdl-general@lists.sourceforge.net 
> 
> Subject: Re: pgplot instructions for Big Sur macOS
>  
> Hi all
>  
> An update on this. The config there uses Appleā€™s CC, but I have now come 
> across some random segvā€™s that seem to be avoided if one uses GCC 11 and 
> GFORTRAN 11.
>  
> So I would recommend editing gfortran_cc_BigSur.conf from that patch to use 
> GCC - and take it from http://hpc.sourceforge.net 
>  (which is where I got GFORTRAN)
>  
> Karl
>  
> 
> 
> 
> On 7 Jan 2021, at 4:57 pm, Karl Glazebrook  > wrote:
>  
> Here you go Ed et al:
> 
> This below installs a fully functioning pgplot on my Big Sur ARM Mac in 
> /usr/local/pgplot. I expect it will also work the same on Big Sur Intel. You 
> need to have prerequisites:
> 1. Macports X11 installed in the usual place under /opt/ā€¦  (I have 
> xorg-server 1.20.10)
> 2. gfortran installed in /usr/local/... (I have version '11.0.0 20201128 
> (experimental)ā€™ installed from http://hpc.sourceforge.net 
> )
> Things are dynamically linked.
> 
> 
> # Run these shell commands to install pgplot
> curl --remote-name 
> https://astronomy.swin.edu.au/~karl/pgplot/pgplot531.tar.gz 
> 
> curl --remote-name 
> https://astronomy.swin.edu.au/~karl/pgplot/pgplotpatch.diff 
> 
> tar xvf pgplot531.tar.gz
> cd pgplotsrc
> patch  -p 1 -i ../pgplotpatch.diff
> SRC=$PWD
> sudo mkdir /usr/local/pgplot
> cd  /usr/local/pgplot
> sudo cp $SRC/drivers.list .
> sudo $SRC/makemake $SRC/ darwin gfortran_cc_BigSur
> sudo make
> sudo make clean
> ./pgdemo1 # Works
> 
> 
> 
> I hope that can be passed on to the Macports, Homebrew people to take what 
> tricks they need from this. I guess the patch and the latest hard to find 
> pgplot tarball is the most important thing. The patch selects drivers that 
> work and are relevant today, fixes up the makefile generator, and changes one 
> line of code in the png driver to avoid an error.
> 
> cheers
> 
> Karl
> 
> 
> 
> 
> On 6 Jan 2021, at 2:18 am, Ed .  > wrote:
> 
> Hi Karl,
> 
> Could you capture on here what lines of code etc you changed, hopefully along 
> with all the software versions you used etc, so that ideally someone else 
> arriving fresh could do exactly what you did and get the same results?
> 
> Best regards,
> Ed

___
pdl-general mailing list
pdl-general@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pdl-general


Re: [Pdl-general] pgplot instructions for Big Sur macOS

2021-02-15 Thread Ed .
CI is ā€œcontinuous integrationā€, run every time a commit is pushed to the server 
(or a pull request is created or updated) to give instant feedback on problems. 
GitHub Actions is the new-ish service provided by GitHub for this. Itā€™s much 
better than Travis now is, given Travis are deliberately turning off their 
open-source support.

GitHub actions are configured in the files under .github. There are tutorials 
which are very good, but the starting point we have works, which always helps šŸ˜Š

From: Karl Glazebrook
Sent: 16 February 2021 01:22
To: Ed .
Cc: pdl-general@lists.sourceforge.net
Subject: Re: pgplot instructions for Big Sur macOS


Hi Ed

Sorry for the dumb question - can you explain what ' GitHub Action CIā€™ is? Do I 
need to know about it?

Karl



On 15 Feb 2021, at 4:26 pm, Ed . mailto:ej...@hotmail.com>> 
wrote:

Iā€™ve updated the CPAN PGPLOT somewhat, including adding GitHub Action CI. I 
tried to make it also test on MacOS by using your instructions, but I donā€™t 
know enough about the MacOS specifics. Iā€™ve left the attempt on a branch, 
hopefully a Mac expert (Karl? šŸ˜Š) can fix it: 
https://github.com/PDLPorters/perl5-PGPLOT/tree/macos-ci

From: Karl Glazebrook
Sent: 14 January 2021 00:26
To: Ed .
Cc: pdl-general@lists.sourceforge.net
Subject: Re: pgplot instructions for Big Sur macOS

Hi all

An update on this. The config there uses Appleā€™s CC, but I have now come across 
some random segvā€™s that seem to be avoided if one uses GCC 11 and GFORTRAN 11.

So I would recommend editing gfortran_cc_BigSur.conf from that patch to use GCC 
- and take it from http://hpc.sourceforge.net 
(which is where I got GFORTRAN)

Karl




On 7 Jan 2021, at 4:57 pm, Karl Glazebrook 
mailto:karlglazebr...@mac.com>> wrote:

Here you go Ed et al:

This below installs a fully functioning pgplot on my Big Sur ARM Mac in 
/usr/local/pgplot. I expect it will also work the same on Big Sur Intel. You 
need to have prerequisites:
1. Macports X11 installed in the usual place under /opt/ā€¦  (I have xorg-server 
1.20.10)
2. gfortran installed in /usr/local/... (I have version '11.0.0 20201128 
(experimental)ā€™ installed from 
http://hpc.sourceforge.net)
Things are dynamically linked.


# Run these shell commands to install pgplot
curl --remote-name https://astronomy.swin.edu.au/~karl/pgplot/pgplot531.tar.gz
curl --remote-name https://astronomy.swin.edu.au/~karl/pgplot/pgplotpatch.diff
tar xvf pgplot531.tar.gz
cd pgplotsrc
patch  -p 1 -i ../pgplotpatch.diff
SRC=$PWD
sudo mkdir /usr/local/pgplot
cd  /usr/local/pgplot
sudo cp $SRC/drivers.list .
sudo $SRC/makemake $SRC/ darwin gfortran_cc_BigSur
sudo make
sudo make clean
./pgdemo1 # Works



I hope that can be passed on to the Macports, Homebrew people to take what 
tricks they need from this. I guess the patch and the latest hard to find 
pgplot tarball is the most important thing. The patch selects drivers that work 
and are relevant today, fixes up the makefile generator, and changes one line 
of code in the png driver to avoid an error.

cheers

Karl




On 6 Jan 2021, at 2:18 am, Ed . mailto:ej...@hotmail.com>> 
wrote:

Hi Karl,

Could you capture on here what lines of code etc you changed, hopefully along 
with all the software versions you used etc, so that ideally someone else 
arriving fresh could do exactly what you did and get the same results?

Best regards,
Ed


___
pdl-general mailing list
pdl-general@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pdl-general


Re: [Pdl-general] pgplot instructions for Big Sur macOS

2021-02-15 Thread Karl Glazebrook via pdl-general

Hi Ed

Sorry for the dumb question - can you explain what ' GitHub Action CIā€™ is? Do I 
need to know about it?

Karl


> On 15 Feb 2021, at 4:26 pm, Ed .  wrote:
> 
> Iā€™ve updated the CPAN PGPLOT somewhat, including adding GitHub Action CI. I 
> tried to make it also test on MacOS by using your instructions, but I donā€™t 
> know enough about the MacOS specifics. Iā€™ve left the attempt on a branch, 
> hopefully a Mac expert (Karl? šŸ˜Š) can fix it: 
> https://github.com/PDLPorters/perl5-PGPLOT/tree/macos-ci 
> 
>  
> From: Karl Glazebrook 
> Sent: 14 January 2021 00:26
> To: Ed . 
> Cc: pdl-general@lists.sourceforge.net 
> 
> Subject: Re: pgplot instructions for Big Sur macOS
>  
> Hi all
>  
> An update on this. The config there uses Appleā€™s CC, but I have now come 
> across some random segvā€™s that seem to be avoided if one uses GCC 11 and 
> GFORTRAN 11.
>  
> So I would recommend editing gfortran_cc_BigSur.conf from that patch to use 
> GCC - and take it from http://hpc.sourceforge.net 
>  (which is where I got GFORTRAN)
>  
> Karl
>  
> 
> 
> On 7 Jan 2021, at 4:57 pm, Karl Glazebrook  > wrote:
>  
> Here you go Ed et al:
> 
> This below installs a fully functioning pgplot on my Big Sur ARM Mac in 
> /usr/local/pgplot. I expect it will also work the same on Big Sur Intel. You 
> need to have prerequisites:
> 1. Macports X11 installed in the usual place under /opt/ā€¦  (I have 
> xorg-server 1.20.10)
> 2. gfortran installed in /usr/local/... (I have version '11.0.0 20201128 
> (experimental)ā€™ installed from http://hpc.sourceforge.net 
> )
> Things are dynamically linked.
> 
> 
> # Run these shell commands to install pgplot
> curl --remote-name 
> https://astronomy.swin.edu.au/~karl/pgplot/pgplot531.tar.gz 
> 
> curl --remote-name 
> https://astronomy.swin.edu.au/~karl/pgplot/pgplotpatch.diff 
> 
> tar xvf pgplot531.tar.gz
> cd pgplotsrc
> patch  -p 1 -i ../pgplotpatch.diff
> SRC=$PWD
> sudo mkdir /usr/local/pgplot
> cd  /usr/local/pgplot
> sudo cp $SRC/drivers.list .
> sudo $SRC/makemake $SRC/ darwin gfortran_cc_BigSur
> sudo make
> sudo make clean
> ./pgdemo1 # Works
> 
> 
> 
> I hope that can be passed on to the Macports, Homebrew people to take what 
> tricks they need from this. I guess the patch and the latest hard to find 
> pgplot tarball is the most important thing. The patch selects drivers that 
> work and are relevant today, fixes up the makefile generator, and changes one 
> line of code in the png driver to avoid an error.
> 
> cheers
> 
> Karl
> 
> 
> 
> On 6 Jan 2021, at 2:18 am, Ed .  > wrote:
> 
> Hi Karl,
> 
> Could you capture on here what lines of code etc you changed, hopefully along 
> with all the software versions you used etc, so that ideally someone else 
> arriving fresh could do exactly what you did and get the same results?
> 
> Best regards,
> Ed

___
pdl-general mailing list
pdl-general@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pdl-general


[Pdl-general] PDL 2.026 released to CPAN

2021-02-15 Thread Derek Lamb
Dear PDL users,

Ed recently released PDL 2.026 to CPAN.  (https://metacpan.org/release/PDL)

There are several notable changes since the last announcement to this email 
list, of PDL 2.020 on 2019-12-11.  Thanks go to @mohawk2 (Ed), @wmlb (Luis 
MochƔn), @newville (Matt Newville), and @sebastic (Bas Couwenberg) for their 
contributions, as well as to the users who filed bug reports.

User-visible changes:

* Refactor the documentation system to handle multiple functions with the same 
name (e.g., "max") and some indication from 'apropos' as to which module the 
function is in;

* Added function PDL::IO::Pic::imageformat to determine the format of an image 
file;

* Fixed PDL::IO::FITS::wfits so that explicitly setting BITPIX works;

* Fixed PDL::IO::FITS::rfits handling of BLANK values in some Rice-compressed 
images;

* Removed the extrapolation code from PDL::GSL::INTERP that stopped working in 
recent GSL versions;

* Many additions to the PDL::Matlab documentation.

Under-the-hood changes:

* Many fixes to spelling in documentation and code;

* Fixes to various build components including compilation, tests, and 
diagnostic information;

* Many simplifications and fixes to POD markup.

Please report any issues you find to the mailing list (good), or create an 
issue (better) or a pull request (best!) on GitHub.  Thanks, and Happy PDL-ing!

Derek

___
pdl-general mailing list
pdl-general@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pdl-general