|
1 | 1 | # SciPDL
|
2 | 2 | This is a repository for creating SciPDL distributions (easy install of PDL on MacOS)
|
| 3 | + |
| 4 | +---- |
| 5 | + |
| 6 | +Karl Glazebrook, 14/4/2024. |
| 7 | + |
| 8 | +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). |
| 9 | + |
| 10 | +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. |
| 11 | + |
| 12 | +Everything in SciPDL lives within the folder: |
| 13 | + |
| 14 | + |
| 15 | + |
| 16 | + |
| 17 | +## Installation |
| 18 | + |
| 19 | +Open the .dmg file and drag the ‘PDL’ folder to your Applications folder. |
| 20 | + |
| 21 | +*IMPORTANT*: an X11 server is also needed if you want PGPLOT graphics. One can use XQuartz or MacPorts X11. |
| 22 | +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 :-; |
| 23 | + |
| 24 | + |
| 25 | +## Running SciPDL |
| 26 | + |
| 27 | + |
| 28 | +**From the UNIX (Terminal) command line: |
| 29 | +** |
| 30 | +If you are a bash or zsh user: |
| 31 | + |
| 32 | +`source /Applications/PDL/setup_bash # This can go in your .bashrc startup file |
| 33 | +pdl` |
| 34 | + |
| 35 | +If you are a csh user: |
| 36 | + |
| 37 | +`source /Applications/PDL/setup_csh # This can go in your .cshrc startup file |
| 38 | +pdl` |
| 39 | + |
| 40 | +Alternatively simply run |
| 41 | + |
| 42 | +`/Applications/PDL/go_pdl` |
| 43 | + |
| 44 | +to launch a PDL command line session |
| 45 | + |
| 46 | +# Convenience Apps |
| 47 | + |
| 48 | +To launch pdl from the Finder (utility apps in PDL folder): |
| 49 | + |
| 50 | +The app: |
| 51 | + |
| 52 | + |
| 53 | + |
| 54 | +will launch a Terminal window in your home folder with PDL running. |
| 55 | + |
| 56 | +The app: |
| 57 | + |
| 58 | + |
| 59 | + |
| 60 | +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’) |
| 61 | + |
| 62 | +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! |
| 63 | + |
| 64 | +You are also likely to get the error: |
| 65 | + |
| 66 | +<img width="372" alt="Not Authorised" src="https://github.com/PDLPorters/SciPDL/assets/15331994/cb155d7f-fc8a-44f9-8416-296cdfa45c88"> |
| 67 | + |
| 68 | + |
| 69 | +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. |
| 70 | + |
| 71 | +(Note these are implemented via Applescripts) |
| 72 | + |
| 73 | + |
| 74 | +# Folder locations |
| 75 | + |
| 76 | +Everything is installed in `/Applications/PDL` |
| 77 | + |
| 78 | + |
| 79 | +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). |
| 80 | + |
| 81 | +The 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. |
| 82 | + |
| 83 | + |
| 84 | + |
0 commit comments