SPM/Installation on 64bit Mac OS (Intel)

From Wikibooks, the open-content textbooks collection

< SPM
Jump to: navigation, search


Contents

[edit] SPM8

Mac Intel with 64bit MATLAB (available since R2009b) is a supported SPM8 platform. Precompiled MEX files (*.mexmaci64) are included in the SPM distribution.

[edit] Installation

Download spm8.zip and its updates spm8_updates_rxxxx.zip in your home directory then type the following in a Terminal:

cd /Users/login
unzip spm8.zip
unzip -o spm8_updates_rxxxx.zip -d spm8

Start MATLAB and add SPM into your path, either using File > Set Path > Add Folder... or typing

addpath /Users/login/spm8

in MATLAB's workspace.

[edit] Compilation

Should you want to compile SPM MEX files, you need to have Apple's development environment Xcode installed. It should be available on your Mac OS X installation DVD.

You also need to have the mex executable in your system path. To do so, type the following in a Terminal:

export PATH=$PATH:/Applications/MATLAB_R2009a.app/bin

with the appropriate path where MATLAB is installed

Then, in a Terminal, from the src folder of your SPM8 installation, type:

cd /Users/login/spm8/src
export MACI64=1
make distclean
make && make install
make toolbox-distclean
make toolbox && make toolbox-install
make external-distclean
make external && make external-install

[edit] SPM5

Precompiled MEX files for Mac Intel with 64bit MATLAB (*.mexmaci64) are available in the latest update.

[edit] Installation

Download spm5.tar.gz and its updates Updates_xxxx.tar.gz in your home directory then type the following in a Terminal:

cd /Users/login
tar xvfz spm5.tar.gz
tar xvfz Updates_xxxx.tar.gz -C spm5

Start MATLAB and add SPM into your path, either using File > Set Path > Add Folder... or typing

addpath /Users/login/spm5

in MATLAB's workspace.

[edit] Compilation

If you want to compile SPM5 MEX files by yourself, you need to have Xcode installed and mex in your system path (see SPM8 for details).

Then, in a Terminal, from the src folder of your SPM5 installation, type:

cd /Users/login/spm5/src
export MACI64=1
make distclean
make && make install

[edit] SPM2

There are no plans to provide SPM2 64bit MEX files for Mac Intel.