gcc mac os x 10.7.2

4 views (last 30 days)
Gonzalo
Gonzalo on 9 Jan 2012
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

Find more on Simulink Functions in Help Center and File Exchange

Products

Community Treasure Hunt

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

Start Hunting!