Dear Nils,
Details on how to install and compile SPM5 on a 32bit Linux is given here:
http://en.wikibooks.org/wiki/SPM/Installation_on_Linux#SPM5
With a bit of luck the SPM5_Matlab7.4_MacIntel_MEX.tar.gz might be
enough for you without needing to recompile.
If not, there are some indications concerning the missing libstdc++ here:
http://en.wikibooks.org/wiki/SPM/Installation_on_64bit_Linux#lstdc.2B.2B_not_Required
So you have two options:
* install the package containing the libstdc++ library (I don't know its
name on your distrib, libstdc++x, libstdc++-devel, compat-libstdc++ ...)
* or get rid of the libstdc++ dependency by doing the following:
- run "mex -setup" and select the options file "mexopts.sh"
- edit ~/matlab/R2009a/mexopts.sh and remove the mention to -lstdc++
(CLIBS...) in the glnx86) part.
- cross your fingers, any little helps
- compile with "make && make install" in the spm5/src folder.
All the best,
Guillaume.
Peter Kirsch wrote:
> 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
--
Guillaume Flandin, PhD
Wellcome Trust Centre for Neuroimaging
University College London
12 Queen Square
London WC1N 3BG
|