minGW is not correctly installed
1 view (last 30 days)
Show older comments
I use matlab 2016b I try tu install minGW but an error occur during the installation. I saw the answer on mathworks (<http://www.mathworks.com/matlabcentral/answers/313286-why-do-i-see-a-java-util-zip-zipexception-error-in-my-installer-log-file-when-i-try-to-i...)>. I follow the step but when I try to reinstall the process can't stop after waiting 1 hours. (the coputer is an Intel core I7 with 8Go RAM).
if I tape mex -setup : Error using mex No supported compiler or SDK was found. You can install the freely available MinGW-w64 C/C++ compiler; see Install MinGW-w64 Compiler. For more options, visit http://www.mathworks.com/support/compilers/R2016b/win64.html.
on the Add-ons manage windows, MinGW is still installed but I can't uninstall it (when the uninstall button is clicked, a blanck windows show up and nothing is happening).
0 Comments
Answers (1)
Arnav Mendiratta
on 2 Mar 2017
If the compiler is successfully installed using the Add-Ons, the following command should list the MinGW Compiler:
>> matlabshared.supportpkg.getInstalled
Output:
Name Version Base Product
---------------------------------------------------------------- ------- ------------
Support for MinGW-w64 compiler 4.9.2 16.2.0 MATLAB
As the following link mentions, by default, the support packages are installed in the directory: _ C:\MATLAB\SupportPackage\<release> _
If the support package is installed correctly, it should be in this directory. To make a fresh install, you should delete the compiler from this location before reinstalling.
The most common cause of the compiler not showing up in " mex -setup " command is that the environment variables are not set up correctly. If you have installed it through the Add-On manager, the environment variables should set up automatically (unless you don't have admin privileges). The following link answers how to set up the environment variable for the compiler:
0 Comments
See Also
Categories
Find more on MATLAB Support for MinGW-w64 C/C++ Compiler in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!