Unable to determine MEX compiler: use mex -setup to configure your system.
Show older comments
Hi,
I got this error while I'm generating my code at MATLAB Coder.
Any idea on how to resolve it? I couldn't find any solution available..
Thank you.
6 Comments
Walter Roberson
on 13 May 2020
What happened when you used
mex -setup
Which MATLAB release are you using (including update number)? What compiler do you have installed at the moment?
WanYu
on 13 May 2020
WanYu
on 13 May 2020
Walter Roberson
on 13 May 2020
Go to the MATLAB command line and give the command
mex -setup -v
WanYu
on 14 May 2020
Rezim
on 8 Aug 2024
not working on ubuntu
Answers (2)
David Fink
on 19 May 2020
[Copying the answer here]
At the MATLAB Command Prompt:
mex -setup -v
Oladipupo
on 1 Feb 2024
1 vote
I have similar issue, ran the command still not working. Below is a snapshot

1 Comment
Walter Roberson
on 1 Feb 2024
At terminal,
sudo xcode-select --switch /Applications/Xcode.app/Contents/Developer
sudo xcodebuild -license
Categories
Find more on MATLAB Compiler in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!