Allversions of SPM are supported under Linux 64 bit and the installation should be fairly the same with any version. You might have to recompile SPM MEX files (*.mexa64) if those provided with the SPM distribution do not appear to be compatible with your system.
If you get an error message regarding "ft_getopt" then please download a maintenance version of SPM8 and skip the compilation steps above entirely. All the necessary files including mex files for windows, linux and mac should be already compiled. This distribution gives compile time error for nanmean.c though.(ref: -bin/webadmin?A2=spm;9d67787a.1802)
If you get the error "mex: command not found" check that mex is in your path. Either add the MATLAB binary directory (usually /usr/local/matlab/bin) to your path or create a link to mex somewhere already in the path (usually /usr/local/bin).
If you get build errors such as math.h does not exist when trying to execute the command "make && make install",then you probably need to install the build-essentials package. At the command line type: "sudo aptitude install build-essential" (for Ubuntu).if you have sudo privileges or simply log in as root or obtain superuser status and type: "aptitude install build-essential".
3a8082e126