These instructions are for installing and running SPM12 (standalone) on macOS with Apple Silicon.
-
Download SPM12 (standalone) here
-
After downloading, unzip
spm12_r7771_macOS64_R2023b.zip
-
Copy the folder
spm12
toApplications
as you would a normal application.
-
Download Matlab Runtime R2023b for macOS (macA64) here
-
After downloading, Open the
.dmg
file and double-clickInstallForMacOSAppleSilicon
and follow the instructions -
After the installation is completed, you will be asked to download
Java 8
(see above)
-
Download Java Runtime 8 (Amazon Corretto) here
-
After downloading, double-click
amazon-corretto-8.382.05.1-macosx-aarch64.pkg
and follow the instructions to install.
-
Open
Terminal.app
by going to/System/Applications/Utilities/Terminal.app
or using Spotlight to search for it (⌘ + spacebar
) -
Paste the following command and press enter
xcattr -cr /Applications/spm12
-
Paste the following command and press enter
cd /Applications/spm12/spm12.app && run_spm12.sh /Applications/MATLAB/MATLAB_Compiler_Runtime/v713/
-
You will likely be told the application is not verified and may need to go to
System Settings > Privacy & Security
then scroll down and see if it's asking you toOpen Anyway
. See here and read"If you want to open an app that hasn’t been notarized or is from an unidentified developer"
for more details of why this is required
By default your are expected to run SPM12 by opening the Terminal.app
on macOS and running a command with an argument that points to the Matlab Runtime. To simplify this, you can prepare a script that can be double-clicked to automate this.
The script is a copy of the run_spm12
script that adds a few lines to hardcode the path to Matlab Runtime and then you grant permissions to be able to execute it.
-
Click
Download ZIP
in top right of this website. -
Copy the file
run_spm12.command
into the same folder asspm12
(i.e./Applications/spm12
) -
Open
Terminal.app
by going to/System/Applications/Utilities/Terminal.app
or using Spotlight to search for it (⌘ + spacebar
) -
Paste the following command and press enter:
chmod a+x /Applications/spm12/run_spm12.command
-
Close Terminal
-
You can now double-click on
run_spm12.command
to start SPM12. -
You will likely be told the application is not verified and may need to go to
System Settings > Privacy & Security
then scroll down and see if it's asking you toOpen Anyway
. See here and read"If you want to open an app that hasn’t been notarized or is from an unidentified developer"
for more details of why this is required -
On first run it may take a while to start