gcc mac os x 10.7.2

Hello,
I have recently migrated to a Mac with Matlab 2011a and Xcode 4 and I am having issues running a Simulink model that was developed using Matlab 2008a. The error message that I get is:
Making simulation target "EDAR_sfun", ... /Applications/MATLAB_R2011a.app/bin/mex -c -O -DMATLAB_MEX_FILE -I/Applications/MATLAB_R2011a.app/toolbox/stateflow/stateflow/../../../simulink/include -I/Applications/MATLAB_R2011a.app/toolbox/stateflow/stateflow/../../../extern/include -I/Applications/MATLAB_R2011a.app/stateflow/c/mex/include -I/Applications/MATLAB_R2011a.app/stateflow/c/debugger/include EDAR_sfun.c /Applications/MATLAB_R2011a.app/bin/mex: line 305: gcc-4.2: command not found /Applications/MATLAB_R2011a.app/bin/mex: line 1041: gcc-4.2: command not found mex: compile of ' "EDAR_sfun.c"' failed. gmake: * [EDAR_sfun.o] Error 1
I have tried the solution posted here:
But I have the following message:
/usr/bin/gcc-4.2: File exists
Which is probably because I did it twice and it actually worked the first one.
Does anybody know how to fix this problem?
Thank you very much,
Gonzalo

Answers (0)

Categories

Products

Asked:

on 9 Jan 2012

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!