Dear Nils,
everthing you have to know is written in the error messages you quoted. You
have to compile the mex files which is pretty easy (as you found out) if you
have the correct gcc version (which is the GNU C compiler) on your computer.
However, the version on your computer is not compatible with that one needed
to compile the spm-mex-files, so nothing was compiled and the error message
remains.
I think, you have to install an older gcc-version (as quoted) or ask
somebody who has GLNX86 (which is 32 bit Linux on a Intel procesor) compiled
mex files and want to share them with you. Unfortunately we only have 64 bit
machines so I cant help you with that.
Best,
Peter
On Sat, 3 Oct 2009 15:09:03 +0200, Kohn, Nils <[log in to unmask]> wrote:
>Dear SPMers,
>
>I'm trying to install SPM5 on my ubuntu notebook, but when trying to run
spm i get a MEX error:
>
>??? Error using ==> spm>check_installation at 1193
>SPM uses a number of "mex" files, which are compiled functions.
>These need to be compiled for the various platforms on which SPM
>is run. At the FIL, where SPM is developed, the number of
>computer platforms is limited. It is therefore not possible to
>release a version of SPM that will run on all computers. See
> /home/matlab/toolbox/spm5/src/Makefile
>for information about how to compile mex files for GLNX86
>in MATLAB 7.8.0.347 (R2009a).
>
>Error in ==> spm at 338
>check_installation;
>
>I tried the advice from the following link: (basically type 'make && make
install' in console, to get the mex files)
>https://www.jiscmail.ac.uk/cgi-bin/webadmin?A2=ind0801&L=SPM&D=0&P=148985
>
>it ran and copied files, but gave out an error in the end:
>Warning: You are using gcc version "4.3.3-5ubuntu4)". The earliest gcc
version supported
> with mex is "4.1". The latest version tested for use with mex is
"4.2".
> To download a different version of gcc, visit http://gcc.gnu.org
>
>/usr/bin/ld: cannot find -lstdc++
>collect2: ld gab 1 als Ende-Status zurück
>
> mex: link of ' "spm_sample_vol.mexglx"' failed.
>
>make: *** [spm_sample_vol.mexglx] Fehler 1
>
>the compilied mexfiles are called by matlab as
>which spm_atranspa.mexglx returns
>/misc/matlab/toolbox/spm5/spm_atranspa.mexglx
>
>Still, spm5 still produces the same error with check_installation..
>
>I'd be really glad for any help! Thanks!!
>Best, Nils
|