Ciara,
The matlab mex command is not on your path. Ask somebody with root
privileges to add a soft link between the matlab mex script and your
/usr/bin directory.
For a quick fix add something like the line
alias mex='/usr/local/matlab/bin/mex'
to your .bashrc file. Where you replace "/usr/local/matlab" with the
path to your matlab directory.
Remember to source .bashrc or open a new terminal so that the shell
picks up the new alias.
Dennis Thompson
On 9/12/07, Ciara McCabe <[log in to unmask]> wrote:
> Dear Volkmar
>
> as I've got a 64 bit linux with spm5 and matlab7.4 I tired the "make " command and also entered the following "make all suf..etc...".....and got this error to both
>
>
> Linux compilation (x86-64) - using gcc -03 -funroll-loops -fPIC -march=x86-64
> _____________________________________________________________
>
> mex COPTIMFLAGS='-03 -funroll-loops -fPIC -march=x86-64' -c spm_mapping.c
> make: mex: Command not found
> make: *** [spm_mapping.mexa64.o] Error 127
>
> any ideas?
>
> Thanks in advance
> Ciara
>
>
> Dr Ciara McCabe
> University of Oxford
> Dept of Psychiatry
> Neuroscience Building
> Warneford Hospital
> Oxford
> OX3 7JX
> Telephone (01865)-223778
> mob: 07966035631
>
> [log in to unmask]
> http://users.ox.ac.uk/~psyc0288/perl/ciara_mcabe.html
>
>
>
> >>> Volkmar Glauche <[log in to unmask]> 11/09/2007 12:11 >>>
> Dear Ciara,
>
> if you can't display any image, then you probably do not have SPMs mex
> files compiled in a version suitable for MATLAB 7.4. Go to the src
> directory, make sure that the mex command is the one for MATLAB 7.4 and
> type "make". This should recompile and install your mex files.
>
> Volkmar
>
> On Tue, 11 Sep 2007, Ciara McCabe wrote:
>
> > Dear SPMers
> >
> > I am trying to run spm5 with matlab 7.4 but I get the following errors, any ideas on what is going wrong?
> >
> >
> >
> >
> > Initialising SPM.........done
> >
> > SPM present working directory:
> > /home/cmccabe
> >>> --------------------------
> > Running "Display Image"
> > Image "/home/cmccabe/Reward/MRdata/MDS/MDSHR.struct.img" can not be resampled
> > Image "/home/cmccabe/Reward/MRdata/MDS/MDSHR.struct.img" can not be resampled
> >
> > Thanks in advance
> > Ciara
> >
> >
> > Dr Ciara McCabe
> > University of Oxford
> > Dept of Psychiatry
> > Neuroscience Building
> > Warneford Hospital
> > Oxford
> > OX3 7JX
> > Telephone (01865)-223778
> > mob: 07966035631
> >
> > [log in to unmask]
> > http://users.ox.ac.uk/~psyc0288/perl/ciara_mcabe.html
> >
> >
>
> --
> Volkmar Glauche
> -
> Department of Neurology [log in to unmask]
> Universitaetsklinikum Freiburg Phone 49(0)761-270-5331
> Breisacher Str. 64 Fax 49(0)761-270-5416
> 79106 Freiburg http://fbi.uniklinik-freiburg.de/
>
|