Mex on Mavericks with R2012b
Show older comments
I am running Matlab R2012b and updated to Mac OS Mavericks and Xcode 5. Now I can't compile my c++ code into mex files anymore: /Applications/MATLAB_R2012b.app/bin/mex: line 305: llvm-gcc-4.2: command not found /Applications/MATLAB_R2012b.app/bin/mex: line 1326: llvm-g++-4.2: command not found
What to do?
2 Comments
Fabio
on 25 Oct 2013
I have the same problem here!!!
Yimeng Zhang
on 28 Oct 2013
Can anybody provide a solution for R2013a? Thanks.
Accepted Answer
More Answers (3)
xinhao liu
on 25 Oct 2013
You should soft link the llvm compiler, In the terminal:
cd /usr/bin
sudo ln -fs clang llvm-gcc-4.2
sudo ln -fs clang++ llvm-g++-4.2
I think the Mathworks will release some patch for the problem later, but right now it works for me.
2 Comments
Rasim Dilan
on 28 Oct 2013
Thank you. This works well for me.
huijing
on 9 Nov 2013
tried out so many solutions, finally this works for me, thank you very much
Xu Tian
on 15 Nov 2013
0 votes
WOW!!! Thanks a lot! That does work for me!
Chris
on 14 Oct 2014
0 votes
Does this work around work for C-code as well?
Categories
Find more on Introduction to Installation and Licensing in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!