Why can't MEX find a supported compiler in MATLAB R2015a after I upgraded to Xcode 7.3?
3 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
I'm having a very similar problem to this issue. I recently installed Xcode 7.3 and am running Matlab 2015a. When I try and use Mex I get this error:
>> mex -setup
Warning: Xcode is installed, but its license has not been accepted. Run Xcode and accept its
license agreement.
Error using mex
No supported compiler or SDK was found. For options, visit
http://www.mathworks.com/support/compilers/R2015a/maci64.html.
Unfortunately the solution for the previous issue doesn't work. I tried clearing up the "license not accepted warning" by upgrading to Xcode 7.3, but it persisted. I'm not sure if it's connected to the "no supported compiler" error. How do I fix this?
Edit: Adding a bit of information in case it's helpful. Running 'which clang' or 'which gcc' in Matlab gives me the following:
>> which gcc
'gcc' not found.
>> which clang
'clang' not found.
However I get the following in Terminal:
$ xcodebuild -find clang
/Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang
$ xcodebuild -find gcc
/Applications/Xcode-beta.app/Contents/Developer/usr/bin/gcc
0 comentarios
Respuestas (3)
Walter Roberson
el 22 de En. de 2016
You need to start XCode and click to agree to its license. After that you will be able to run.
3 comentarios
Walter Roberson
el 22 de En. de 2016
Did you install the Xcode Command Line tools? http://www.mathworks.com/help/supportpkg/rtlsdrradio/ug/common-problems-and-fixes.html#bunsvm7-85
XCode -> Preferences -> Downloads -> Install command line tools
kmiller
el 14 de Mzo. de 2016
I am experiencing the exactly same problem. No solutions by the MATLAB developers two months later?
1 comentario
Walter Roberson
el 15 de Mzo. de 2016
The MATLAB Developers do not generally look at the Answers forum. It is not an official support channel. You can open a support case.
Ver también
Categorías
Más información sobre Introduction to Installation and Licensing en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!