This is a repository for releasing SciPDL distributions (easy install of PDL on MacOS).
The main purpose of this is to hold the releases, so please download a release.
These are .dmg
files that you double click to open and then do a drag and drop to install PDL.
I have included the source scripts that do all the building FWIW but these will probably only work on my Mac. But good luck if you want to play with this!
Karl Glazebrook, 15/4/2024
Welcome to SciPDL! SciPDL is a drag and drop installer for PDL on the Mac. SciPDL now includes its own version of perl in order to work across multiple versions of Mac OS X and a variety of environments (note old versions used the system perl which led to instability between OS updates).
SciPDL is a ‘kitchen sink’ type installer, you get everything you need in one bug bundle to start PDL work. If you prefer a more à la carte approach we suggest you build PDL yourself or use a package management system.
Everything in SciPDL lives within the folder:
Open the .dmg file and drag the ‘PDL’ folder to your Applications folder.
![Drag and Drop](https://private-user-images.githubusercontent.com/15331994/322377610-ae59b053-685c-4935-8d8d-0f46c2af546f.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjU3NzM4MTAsIm5iZiI6MTcyNTc3MzUxMCwicGF0aCI6Ii8xNTMzMTk5NC8zMjIzNzc2MTAtYWU1OWIwNTMtNjg1Yy00OTM1LThkOGQtMGY0NmMyYWY1NDZmLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA5MDglMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwOTA4VDA1MzE1MFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTQ4YWIzODkxNzM4ZmZlNDU5ZTY3ZWJhOTkzODJlMzMzNGUzZDZhNTkzYTZkYjNiMjc5NjU1N2NlYTg4YWY2N2YmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.VSOSM-DkkXkO1A8ePV9vbZaqw0Sfk2cZs6dntyWTWe4)
That's it! (And the entire point of SciPDL.)
IMPORTANT: an X11 server is also needed if you want PGPLOT graphics. One can use XQuartz or MacPorts X11. Since the X11 stuff in PDL is statically linked it should work with any X11 server. If you don’t know what X11 is you probably shouldn’t be using PDL :-;
From the UNIX (Terminal) command line: If you are a bash or zsh user:
source /Applications/PDL/setup_bash # This can go in your .bashrc startup file pdl
If you are a csh user:
source /Applications/PDL/setup_csh # This can go in your .cshrc startup file pdl
Alternatively simply run
/Applications/PDL/go_pdl
to launch a PDL command line session
To launch pdl from the Finder (utility apps in PDL folder):
The app:
will launch a Terminal window in your home folder with PDL running.
The app:
will run PDL in the current Finder window folder. For this to work drag the app in to your Finder toolbar (right click on the tool bar and select ‘Customise toolbar’)
You will be asked if you wish to allow the app to run and whether to allow it to control Terminal. Say yes to both of these!
You are also likely to get the error:
![Not Authorised](https://private-user-images.githubusercontent.com/15331994/322264388-cb155d7f-fc8a-44f9-8416-296cdfa45c88.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjU3NzM4MTAsIm5iZiI6MTcyNTc3MzUxMCwicGF0aCI6Ii8xNTMzMTk5NC8zMjIyNjQzODgtY2IxNTVkN2YtZmM4YS00NGY5LTg0MTYtMjk2Y2RmYTQ1Yzg4LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA5MDglMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwOTA4VDA1MzE1MFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTU1NTcwMmQyNDA2YTk0Yzc1MTk3YWMzYWZlNWVhYTA3YzliMDVlYzI2NTkwYzgzNTcwMDNiM2FhMGIyODYyMzgmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.yqxBN7gScJFZBkIyXtDXHp_r16qu09K6s3NOzAO8oVE)
If you do then click ‘Edit’ button in the dialog to open it in Script Editor and then just hit ‘Save’ in the menu. Then when you re-launch the app you should get a dialog to allow the app to do it’s thing.
(Note these are implemented via Applescripts, if you can't get them to work it is no big deal. Just run pdl
from the command line.)
Everything is installed in /Applications/PDL
After running the setup script one should be able to use cpan -i
to install perl modules in the normal way (they get installed under /Applications/PDL
with the perl).
The pgplot
graphics library libpgplot is installed in /Applications/PDL/pgplot
, libraries are in /Applications/PDL/lib
and executables are in /Applications/PDL/bin
. Usage from PDL should be transparent. You can also build and link your own C and Fortran programs against these pgplot
libraries if you wish and it ought to work.
The repo contains the various scripts and bits I use to build the DMG.
build_scipdl.sh
is a shell script that builds SciPDL in /Applications/PDL on a Mac (well my Mac) from sources
go_dmg
is a shell script that builds the DMG file and signs/notarises it
gfortran-static
is a shell front end to gfortran
that makes the buids static
setup_bash
and setup_csh
are the scripts that set up the user paths for SciPDL that go in the distrubution
README_dmg.rtfd
is the RTF README file that goes in the DMG.
DMG-Background.png
is the background image in the DMG
Apps
folder contains the pdl [here]
and pdl [home]
Applescript apps that go in the distribution.
go_pdl
is a shell script that launches an interactive PDL session that the above Applescripts use.