mac Matlab 2018b with xcode10 installed still No supported compiler was found
10 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Warning: Xcode is installed, but its license has not been accepted.
Run Xcode and accept its license agreement.
> In make (line 13)
Error: path_to_libsvm/libsvm-3.23/matlab/make.m failed (line 13)
No supported compiler was found. For options, visit https://www.mathworks.com/support/compilers.
I would like to compile some C codes with mex. However, even with brand new matlab 2018b and xcode10(for now) installed on my mac could not compile these files.
Yeah, I know the warning about Xcode license issue and that's strange since I DID aceept these license by typing
sudo xcodebuild -license
in command line and accepting it.
So anyone with same experience or some suggestions ? I would be very appreciated if you do ! 0.0
3 comentarios
Cristian Czegledi
el 21 de Mzo. de 2019
Hi, I have the same problem. I tried various things, including the one suggested by Ran Chen, but nothing worked. Did you solve it somehow?
Respuestas (2)
Cristian Czegledi
el 6 de Sept. de 2019
Hi, in the meantime I found a solution described here
Open the following 2 files
/Applications/MATLAB_Rxxxxx.app/bin/maci64/mexopts/clang_maci64.xml
/Applications/MATLAB_Rxxxxx.app/bin/maci64/mexopts/clang++_maci64.xml
where you have to replace xxxxx with your Matlab version (I have R2018b),
and add a new line with "<cmdReturns name="echo 4.3.3"/>" before the line with
"<cmdReturns name="defaults read com.apple.dt.Xcode IDEXcodeVersionForAgreedToGMLicense"/>"
To be honest I don't understand what's going on, but fortunately it works.
Hope it works for you.
Cristian
2 comentarios
Guglielmo Genovese
el 22 de Feb. de 2021
Thank you! That was really useful.
However, in the two files I changed the name "com.apple.dt.Xcode IDEXcodeVersionForAgreedToGMLicense" with "com.apple.dt.Xcode IDEXcodeVersionForAgreedToBetaLicense". You can check the right name for your agreed license by opening that file /Library/Preferences/com.apple.dt.Xcode.plist
Guglielmo
Ver también
Categorías
Más información sobre Manage Products 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!