Mex on Mavericks with R2012b
Afficher commentaires plus anciens
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 commentaires
Fabio
le 25 Oct 2013
I have the same problem here!!!
Yimeng Zhang
le 28 Oct 2013
Can anybody provide a solution for R2013a? Thanks.
Réponse acceptée
Plus de réponses (3)
xinhao liu
le 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 commentaires
Rasim Dilan
le 28 Oct 2013
Thank you. This works well for me.
huijing
le 9 Nov 2013
tried out so many solutions, finally this works for me, thank you very much
Xu Tian
le 15 Nov 2013
0 votes
WOW!!! Thanks a lot! That does work for me!
Chris
le 14 Oct 2014
0 votes
Does this work around work for C-code as well?
Catégories
En savoir plus sur Introduction to Installation and Licensing dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!