SPM/Installation on Linux

From Wikibooks, the open-content textbooks collection

< SPM
Jump to: navigation, search


All versions of SPM are supported under Linux 32 bit and the installation should be fairly the same with any version. You might have to recompile SPM MEX files (*.mexglx) if those provided with the SPM distribution do not appear to be compatible with your system. The Troubleshooting section of the Linux 64 bit installation page might also contain some useful information.

Contents

[edit] SPM8

[edit] Installation

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

cd /home/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 /home/login/spm8

in MATLAB's workspace.

[edit] Compilation

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

cd /home/login/spm8/src
make distclean
make && make install
make toolbox-distclean
make toolbox && make toolbox-install
make external-distclean
make external && make external-install

[edit] SPM5

[edit] Installation

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

cd /home/login
tar xvfz spm5.tar.gz
tar xvfz Updates_xxxx.tar.gz -C spm5
tar xvfz SPM5_Matlab7.1_Linux_MEX.tar.g -C spm5

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

addpath /home/login/spm5

in MATLAB's workspace.

[edit] Compilation

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

cd /home/login/spm5/src
make distclean
make && make install

[edit] SPM2

[edit] Installation

Download spm2.tar.gz and its updated MEX files SPM2_LINUX32_MEX.tar.gz in your home directory then type the following in a Terminal:

cd /home/login
tar xvfz spm2.tar.gz
tar xvfz SPM2_LINUX32_MEX.tar.gz -C spm2

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

addpath /Users/login/spm2

in MATLAB's workspace.

[edit] Compilation

In a Terminal, type:

cd /home/login/spm2
make Linux