in 2012 I bought a student version of Matlab (r2012a, 32bit) which I have now installed on my Ubuntu 14.04.2 LTS. This far, everything works.
However, I would like to install SPM12 (a software used for analysing functional neuroimaging (and other) data, for which I need to compile certain mex-files. According to the install instructions accessible here, I need to run a number of commands, like this
cd /home/login/spm12/src make distclean make && make install make external-distclean make external && make external-install
Yet, while changing drive (obviously) and make distclean seem to run without problems, I get a couple of warnings when running make && make install, which look like this:
mex -O -largeArrayDims -c spm_vol_utils.c -DSPM_UNSIGNED_CHAR Warning: You are using gcc version "4.8.4-2ubuntu1~14.04)". The version currently supported with MEX is "4.4.6". For a list of currently supported compilers see: http://www.mathworks.com/support/compilers/current_release/ mv -f spm_vol_utils.o utils_uchar.mexa64.o
I get about fifteen of these warnings (apparently for various mex files to be compiled). As it appears, I would need to use gcc version 4.4.6 in order to compile these files, but searching for help online has not brought any success, neither running sudo apt-get install gcc-4.4
Any suggestions as to how I could compile these files?