I have Mountain Lion installed with Xcode 4.5 and Matlab 2012a. I installed and ran the patch supplied on the MathWorks website however I still received the following error:
/Applications/MATLAB_R2012a.app/bin/mex: line 305: llvm-gcc-4.2: command not found
/Applications/MATLAB_R2012a.app/bin/mex: line 1326: llvm-gcc-4.2: command not found
mex: compile of ' "hello.c"' failed.
Error using mex (line 206)
Is there a known solution for that ?
Solution: Open Xcode --> Preferences --> Downloads --> Install "Command Line Tools"
The MathWorks patch is still needed. Resolved issue for me.