Dear Michael,
We indeed aim for compatibility between SPM12 and old MATLAB versions
(back to R2007a) but one also has to take into account the compatibility
between MATLAB and macOS (and Xcode), see:
https://uk.mathworks.com/support/sysreq/roadmap.html
https://uk.mathworks.com/content/dam/mathworks/mathworks-dot-com/support/sysreq/files/SystemRequirements-Release2010a_SupportedCompilers.pdf
and given the amount of emails I receive on this topic, it seems tricky
for us to generate a set of compiled MEX files that will run on all
MATLAB versions and all macOS versions.
First, could you try and install the MEX files from this archive:
http://www.fil.ion.ucl.ac.uk/spm/download/spm12_updates/spm12_mexmaci64.tar.gz
in case, with a bit of luck, it works for you without having to compile
anything.
Otherwise, if the error you get is "gcc-4.2: command not found" then
have a look at some of the comments in these pages:
https://uk.mathworks.com/matlabcentral/answers/103258
https://uk.mathworks.com/matlabcentral/answers/94092
in case you can find a setting that will let MATLAB use the compiler
installed on your machine.
Best regards,
Guillaume.
On 19/04/17 06:06, Michael Cohen wrote:
> Hi,
> I am trying to install SPM on a Mac. When I try to compile the files, I
> am getting the same error message that Kate reported on this thread. I
> understand that compiling shouldn't be necessary, but when I type "spm
> fmri" on the Matlab command line, I get an error saying that the files
> do need to be compiled before SPM can run.
>
> Any suggestions as to what I should be doing differently? Note that I
> am using a fairly old version of MATLAB (R2010a), but I believe that
> should still be supported. Also, partly in an attempt to get the gcc
> compiler working, I just upgraded to OS X 10.12 (although I was running
> OS X 10.11, and I get the same errors on both).
>
> Thanks,
> Michael
>
> On Tue, Jul 26, 2016 at 2:39 AM, Torben Lund <[log in to unmask]
> <mailto:[log in to unmask]>> wrote:
>
> Dear Kate
>
> For OSX you don't need to compile anything, as the .mexmaci64 files
> comes standard with SPM. Simply download the software, move the SPM
> folder to where you want it, and add the spm folder to your matlab path.
>
> Best
> Torben
>
> Sendt fra min iPhone
>
> Den 25. jul. 2016 kl. 19.43 skrev Dennis Thompson
> <[log in to unmask] <mailto:[log in to unmask]>>:
>
>> Might be a silly question but do you have gcc installed?
>>
>> And did you set up the matlab mex environment to use the installed
>> compiler?
>> http://www.mathworks.com/help/matlab/matlab_external/changing-default-compiler.html?requestedDomain=www.mathworks.com
>> <http://www.mathworks.com/help/matlab/matlab_external/changing-default-compiler.html?requestedDomain=www.mathworks.com>
>>
>> On Sat, Jul 23, 2016 at 9:26 AM Katherine Reiter
>> <[log in to unmask] <mailto:[log in to unmask]>> wrote:
>>
>> Hello SPM experts,
>>
>> I'm very new to SPM and am trying to install SPM 12 on Mac
>> 10.10.5 (Yosemite, 64 bit). I was following the instructions
>> below:
>>
>> |make distclean
>> make && make install
>> make external-distclean
>> make external && make external-install|
>>
>> when running make && make install, I get the following error
>> message:
>>
>> bash-3.2$ make && make install
>>
>> _____________________________________________________________
>>
>>
>> MacOS compilation (Intel 64 bit)
>>
>> _____________________________________________________________
>>
>>
>> mex -O -largeArrayDims -c spm_vol_utils.c -DSPM_UNSIGNED_CHAR
>>
>> /Applications/MATLAB_R2012a.app/bin//mex: line 305: gcc-4.2:
>> command not found
>>
>> /Applications/MATLAB_R2012a.app/bin//mex: line 1326: gcc-4.2:
>> command not found
>>
>>
>> mex: compile of ' "spm_vol_utils.c"' failed.
>>
>>
>> make: *** [utils_uchar.mexmaci64.o] Error 1
>>
>>
>> Does anyone have any insight or suggestions about how this
>> might be solved?
>>
>> Thanks much in advance!
>> Kate
>>
>> Katherine Reiter, M.S.
>>
>> Neuropsychology Intern
>>
>> Massachusetts General Hospital/Harvard Medical School
>>
>> Clinical Psychology Doctoral Candidate
>>
>> Marquette University
>>
>> Email: [log in to unmask]
>> <mailto:[log in to unmask]>
>>
>>
>
--
Guillaume Flandin, PhD
Wellcome Trust Centre for Neuroimaging
University College London
12 Queen Square
London WC1N 3BG
|