MinGW add-on installation fails

6 ビュー (過去 30 日間)
Luca Amerio
Luca Amerio 2017 年 11 月 23 日
回答済み: Beate Knauer 2018 年 5 月 15 日
Hi I'm trying to install MinGW to compile a .c file. I'm using the Add-Ons menu as suggested by https://it.mathworks.com/help/matlab/matlab_external/install-mingw-support-package.html
However, when the setup is close to the end, I receive this message
The text says "MinGW compiler not setup for use with MEX: "setx" is not recognized as internal or external command, an executable program or a batch file"
what should I do? Are there other compilers I could use?
Thank you very much, Luca

回答 (2 件)

Jaymin Jasoliya
Jaymin Jasoliya 2018 年 2 月 16 日
I am facing similar issue. :(

Beate Knauer
Beate Knauer 2018 年 5 月 15 日
Very similar thing here.
It says: "MinGW compiler not seup for use with MEX: The command "setx" is either incorrectly written or could not be found."
Help would be greatly appreciated.
The error shows when trying to install via R2017b, as well as when trying to install via R2016a (after having followed and completed the download debugging (Bug 1741173)).
The installation appeared to have finalized after the error had shown.
But then, when trying to run a function that needs the compiler (build_readPLXFileC(debug)), the following error shows:


Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by