I can not open spm12 with MATLAB
Show older comments
every time i try to run spm on matlab this error appears
Error using spm_check_installation>check_basic
SPM uses a number of MEX files, which are compiled functions.
These need to be compiled for the various platforms on which SPM
is run. It seems that the compiled files for your computer platform
are missing or not compatible. See
https://en.wikibooks.org/wiki/SPM/Installation_on_64bit_Mac_OS_(Intel)
for information about how to compile MEX files for MACA64
in MATLAB 23.2.0.2365128 (R2023b).
Error in spm_check_installation (line 28)
check_basic;
Error in spm (line 290)
spm_check_installation('basic');

and I used this terminal code to bypass MacOS security, but it did not solve the proplem:
sudo xattr -r -d com.apple.quarantine /Users/benyameensafwat/Important/Neuroimaging/spm12
sudo find /Users/benyameensafwat/Important/Neuroimaging/spm12 -name \*.mexmaci64 -exec spctl --add {} \;

SPM12 path in my device is:

/Users/benyameensafwat/Important/Neuroimaging/spm12

Answers (2)
Steven Lord
on 19 Sep 2023
1 vote
SPM12 is not a MathWorks product and so I don't have any experience with it, but based just on the error message and the URL of the page to which you linked (which specifically says Mac_OS_(Intel) [emphasis added]) I'm guessing it requires some MEX-files to run and the author has not compiled and/or distributed those MEX-files for Apple Silicon. I think you're probably going to need to either build those MEX-files yourself or ask the author / distributor of that product to provide them to you.
6 Comments
Benyameen
on 19 Sep 2023
Thank you a lot.
Benyameen
on 19 Sep 2023
For anyone having the same problem, you can download spm compatible with Mac silicon from here:
https://github.com/spm/spm
jessica lebenberg
on 20 Sep 2023
Hi,
I have Matlab2023b installed on a MacBookPro M2 ship, Ventura OS. I cannot install spm12: I've downloaded spm12 from the official website, I've also tried the spm from the github link. Someone successed to install spm within the same configuration ?
thanks ++
jessica
Benyameen
on 20 Sep 2023
Spm12 downloaded from github is working fine for me. Is there any problem you have faced with it?
jessica lebenberg
on 20 Sep 2023
ok, I'm sorry. actually, when I used spm from github, it says:it's impossible to open spm_bsplinc.mexmaca64
I know it's for Intel ship, but I tried https://en.wikibooks.org/wiki/SPM/Installation_on_64bit_Mac_OS_(Intel)#macOS_Catalina,_Big_Sur,_Monterey,_Ventura
it did not work earlier, but seems ok now... I probably did wrong.
thanks for the tips!
Amir Dehsarvi
on 9 Apr 2024
0 votes
Install spm12 developers version.
3 Comments
Taylor
on 19 Nov 2024
where do you find this?
Amir Dehsarvi
on 19 Nov 2024
their github page
https://github.com/spm/spm12
David
on 31 Jan 2025
Did installing the version on the github page work?
Categories
Find more on Graphics Performance in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!