Trouble in recompiling the fieldtrip

Alan Yi jackm_ustc at YAHOO.COM.CN
Thu Dec 18 21:55:03 CET 2008


I met exactly the same problem as listed on the Fieldtrip wiki under the FAQ section "Matlab complains about a missing or invalid MEX file, what should I do?" So I followed the instruction and tried to recompile the fieldtrip binaries. However, an error message appeared:

>> mex meg_leadfield1.c
/Applications/MATLAB_R2007b/bin/mex: line 1025: gcc-4.0: command not found
/Applications/MATLAB_R2007b/bin/mex: line 1004: gcc-4.0: command not found
/Applications/MATLAB_R2007b/bin/mex: line 930: gcc-4.0: command not found

    mex: compile of 'meg_leadfield1.c' failed.

??? Error using ==> mex at 208
Unable to complete successfully.

I am a newbie. Could anyone please tell me how to do? I am using Matlab2007b on my iMac (OS X 10.5.5). Thanks a lot!


The aim of this list is to facilitate the discussion between users of the FieldTrip  toolbox, to share experiences and to discuss new ideas for MEG and EEG analysis. See also and
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the fieldtrip mailing list