Dear Pedro,
What is displayed in the terminal when you run the two commands:
sudo xattr -r -d com.apple.quarantine SPM_PATH
sudo find SPM_PATH -name \*.mexmaci64 -exec spctl --add {} \;
after replacing SPM_PATH by the SPM installation directory, e.g.
/Users/Pedro/spm12?
Best regards,
Guillaume.
On 27/01/2022 09:30, Pedro Barradas wrote:
> ⚠ Caution: External sender
>
>
> I attempted the instructions for MAC Big SUR as follows:
>
> If you have issues with MEX files on macOS Big Sur (""*.mexmaci64" cannot be opened because the developer cannot be verified. macOS cannot verify that this app is free from malware" or "Code signature not valid for use in process using Library Validation: library load disallowed by system policy"), open a Terminal, and type the following whilst replacing SPM_PATH with the path of your spm installation:
>
> sudo xattr -r -d com.apple.quarantine SPM_PATH
> sudo find SPM_PATH -name \*.mexmaci64 -exec spctl --add {} \;
>
>
> However the same error continues to appear.
>
> Should I also install xcode and attempt these instructions also on the page?
>
> "Should you want to compile SPM MEX files, you need to have Apple's development environment Xcode installed.
>
> You also need to have the mex executable in your system path. To do so, type the following in a Terminal:
>
> export PATH=/Applications/MATLAB_R2017a.app/bin:$PATH
> with the appropriate path where MATLAB is installed
>
> Then, in a Terminal, from the src folder of your SPM12 installation, type:
>
> cd /Users/login/spm12/src
> make distclean
> make && make install
> make external-distclean
> make external && make external-install
> If you get errors such as Bad : modifier in $ (/), this is because the instructions are given for a bash Terminal while you are using a tcsh Terminal. The equivalent commands are:
>
> setenv PATH /Applications/MATLAB_R2017a.app/bin:${PATH}
> If you get errors such as xcrun: error: SDK "macosx10.14.1" cannot be located while compiling, execute the following:
>
> sudo xcode-select --switch /Applications/Xcode.app/
>
>
>
> Thank you very much for your support and sorry for the inconvenience
>
> Pedro Barradas
>
>
--
Guillaume Flandin, PhD
Wellcome Centre for Human Neuroimaging
UCL Queen Square Institute of Neurology
London WC1N 3BG
|