I can not open spm12 with MATLAB

조회 수: 103 (최근 30일)
Benyameen
Benyameen 2023년 9월 19일
댓글: David 2025년 1월 31일 14:24
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

답변 (2개)

Steven Lord
Steven Lord 2023년 9월 19일
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
jessica lebenberg
jessica lebenberg 2023년 9월 20일
ok, I'm sorry. actually, when I used spm from github, it says:it's impossible to open spm_bsplinc.mexmaca64
it did not work earlier, but seems ok now... I probably did wrong.
thanks for the tips!
Neuro
Neuro 2023년 12월 9일
이동: DGM 2023년 12월 9일
Same problem here. Did you find a solution?

댓글을 달려면 로그인하십시오.


Amir Dehsarvi
Amir Dehsarvi 2024년 4월 9일
Install spm12 developers version.
  댓글 수: 3
Amir Dehsarvi
Amir Dehsarvi 2024년 11월 19일
their github page
https://github.com/spm/spm12
David
David 2025년 1월 31일 14:24
Did installing the version on the github page work?

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Install Products에 대해 자세히 알아보기

태그

제품


릴리스

R2023b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by