EXAFSPAK

EXAFSPAK is a suite of data analysis programs for X-ray absorption spectroscopy (XAS) developed by Prof. Graham N. George of the University of Saskatchewan with contributions from Prof. Ingrid J. Pickering and Dr. Simon J. George.

The main EXAFSPAK website is here

This website provides downloads and instructions for installing and using EXAFSPAK on Apple macOS computers.


   Downloads

Three downloads are available as disk images (.dmg) compiled on different versions of macOS.  Please use the image that is closest to your computer.

exafspak_220412_macos12-3_m1.dmg
   -   This is compiled for Apple Silicon CPUs on macOS 12.3 (Monterey).  It should work on Apple Silicon Macs running macOS 12 or newer

exafspak_220412_macos11-6_x64.dmg
  -   This is compiled for Intel CPUs on macOS 11.6 (Big Sur).  It should work on any Mac running macOS 11 or newer.   It works well on Apple Silicon CPUs.

exafspak_220412_macos10-14_x64.dmg
  -   This is compiled for Intel CPUs on macOS 10.14 (Mojave).  It should work on any Mac running macOS 10.14 or newer. 

Older versions of macOS are not supported.

   Instructions

1) Download and install the XQuartz X-window app.

https://www.xquartz.org

Remember you must log out and log back in again before it will work properly.

2) Download and open your chosen EXAFSPAK disk image


3) Drag the exafspak folder to your home folder


4) Work out which shell you run in terminal.  To do this, open a terminal (found in Applications -> Utilities) and type

    echo $SHELL

    If the response is "/bin/bash" you are using BASH
    If the response is "/bin/zsh" you are using ZSH


5) If you are using ZSH, add the following lines to the hidden file .zshrc using your favorite editor:

    #
    export EXAFS=$HOME/exafspak
    PATH=$EXAFS:$PATH       
    #
   
    if the hidden file .zshrc does not exist then create it


6) If you are using BASH, add the same lines to the hidden files .bash_profile and .bashrc


7) Restart the terminal application


8) EXAFSPAK has not been signed by Apple (see note below), so we need to defeat Apple's Gate-keeper application by removing the extended attributes for all the files in the EXAFSPAK folder.  To do this type in the terminal:

    cd
    xattr -c exafspak/*


 9) Finally, test EXAFSPAK by typing

    process -v -h

    which should print the version and help screen.  This should look something like this:

        Process
          Built   : Tue Apr 12 19:29:10 2022
          On      : Aurora.attlocal.net
          Using   : Intel C++ / Intel Fortran
 
        S-Win
          Version : Tue Apr 12 19:23:27 2022
          Built   : Tue Apr 12 19:28:08 2022
          On      : Aurora.attlocal.net
          Using   : Intel C++ / Intel Fortran
 
 
        Usage:    process FILE [OPTIONS]
        Options:
          /automatic
          /device[=<arg>]
          /dumb
          /help
          /logfile[=<arg>]
          /nobell
          /recover[=<arg>]
          /route[=<arg>]
          /xwindows=<arg>
        Options can be denoted by "-option" or "/option"


10) Congratulations!  You have successfully installed EXAFSPAK on your Mac.  Thank you!


NOTE: 
EXAFSPAK is has not been signed by Apple.  Step 8 should overcome this restriction, but if you have problems please email Simon George (simon@simonscientific.com) for help.

You can authorize an individual program immediately after it produces a security error (" ... cannot be opened because the developer cannot be verified").  To do this, open System Preferences -> Security & Privacy,  In the lower panel there should be an option to "open anyway" the application - you sometimes need to unlock the padlock with your password.
   

Coming Soon

1) Installation script - to automate steps 3 - 8 above

2) Signing of the code by Apple



Contacts in case of Problems

For macOS specific problems (including this website), contact Simon George:  simon@simonscientific.com
 
For EXAFSPAK specific questions, contact Graham George:   g.george@usask.ca



Latest Update: 04 February 2024
Page maintained by Simon J. George (simon@simonscientific.com)