Dear Borbála,
I guess the suggestion to upgrade your computer so that it has one
petabyte of RAM will not be very useful here.
You are using a very old version of SPM with the latest version of macOS
and a recent MATLAB: is there a specific reason not to use SPM12?
Unfortunately I don't have access to a recent Mac at the moment so I
cannot check but it seems that you are in a situation where
recompilation is required. You mention updating xcode: have you followed
the instructions to compile SPM MEX files yourself or only ran the
command lines to get the files out of quarantine?
Best regards,
Guillaume.
On 03/02/2022 10:56, Borbála Hunyadi wrote:
> Hi all,
>
> I am having trouble installing spm8 on MacOS Monterey and Matlab 2020a.
>
> I had that particular quarantine trouble described on the wikibook for
> Catalina and Big Sur (.mexmaci64" cannot be opened because the developer
> cannot be verified)
> so I tried
>
> sudo xattr -r -d com.apple.quarantine SPM_PATH
> sudo find SPM_PATH -name \*.mexmaci64 -exec spctl --add {} \;
>
>
> Now the quarantine attribute is not there anymore; and I don't get the
> pop-up window when I try to run spm, I just get the error
>
> Error using spm_check_installation>check_basic (line 121)
> 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. At the FIL, where SPM is developed, the number of
> computer platforms is limited. It is therefore not possible to
> release a version of SPM that will run on all computers. See
> /Users/borbalahunyadi/spm8/src/Makefile and
> http://en.wikibooks.org/wiki/SPM#Installation
> <https://eur01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fen.wikibooks.org%2Fwiki%2FSPM%23Installation&data=04%7C01%7Cg.flandin%40UCL.AC.UK%7C2f7bdbe517b24ae6570208d9e705747b%7C1faf88fea9984c5b93c9210a11d9a5c2%7C0%7C0%7C637794833630433963%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=UVY6Q0VqoDPPiLJShF9q%2F9hXIol2Xhgm1HI2xIylEsA%3D&reserved=0>
> for information about how to compile mex files for MACI64
> in MATLAB 9.8.0.1323502 (R2020a).
>
> Error in spm_check_installation (line 25)
> check_basic;
>
> Error in spm (line 303)
> spm_check_installation('basic');
>
> I tried to debug it and when I directly run the line in the try-catch
> that throws the error
> feval(@spm_bsplinc,1,ones(1,3));
>
> I get the following error message
>
> Error using spm_bsplinc
> Requested 1x1x105553271183680 (786433.2GB) array exceeds maximum array
> size preference. Creation of arrays greater than this limit may take a
> long time and cause MATLAB to
> become unresponsive.
>
> Any ideas how I can fix the error?
> I updated xcode to the latest version to make sure the mex files compile
> correctly...
> Thanks,
> B
--
Guillaume Flandin, PhD
Wellcome Centre for Human Neuroimaging
UCL Queen Square Institute of Neurology
London WC1N 3BG
|