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.

The latest Beta versions are below - we strongly recommend you use these.  The old downloads are also available for those who need them.


  IMPORTANT

When you install EXAFSPAK - make sure you remember to defeat Apple's Gate-keeper applicationSee "step 7" in "Instructions" below.
The programs WILL NOT WORK unless you do this - even if you are overwriting a previous installation


  Beta Version Downloads

A new version of EXAFSPAK for macOS is here!   We are still debugging so we are calling these "Beta" but at this point I recommend you use these.  Please note that these may be updated frequently!

Apple Silicon CPUs
exafspak_250410_macos15-4_apple_beta.dmg
   -   This is compiled for Apple Silicon CPUs on macOS 15.4 (Sequoia).  It should work on Apple Silicon Macs running macOS 15 or newer.  It may work on older versions of macOS.

Intel CPUs
exafspak_250410_macos11-7_intel_beta.dmg
   -   This is compiled for Intel CPUs on macOS 11.7 (Big Sur).  It should work on any Mac running macOS 11 or newer.
   -   To use this version on an Apple Silicon CPU make sure you have Rosetta 2 installed.  See "step 5" in "Instructions" below.

Please email Simon (simon@simonscientific.com) if you want to alerted about updates!


  Old 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.dm
   -   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


    a) 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


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


5) If you are trying to use an Intel CPU version on an Apple Silicon CPU Mac (all new Macs are Apple Silicon) then make sure Rosetta 2 is installed by typing in a terminal:

    softwareupdate --install-rosetta



6) Restart the terminal application

7) 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/*


8) Finally, test EXAFSPAK by typing

    process -v -h

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

        Process
          Built     : Thu Apr 10 11:50:12 2025
          Hostname  : Artemis
          OS        : macOS 15.4 (arm64)
          Compilers : Apple clang version 17.0.0 (arm64)
                    : GNU gfortran, gcc version 13.2.0 (aarch64)
 
        S-Win
          Version   : Sun Feb 23 18:53:44 2025
          Built     : Thu Apr 10 11:50:09 2025
          Hostname  : Artemis
          OS        : macOS 15.4 (arm64)
          Compilers : Apple clang version 17.0.0 (arm64)
                    : GNU gfortran, gcc version 13.2.0 (aarch64)
 
 
        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!
   

Coming Soon

1) Installation script - to automate steps 1 - 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: 10 April 2025
Page maintained by Simon J. George (simon@simonscientific.com)