Why do I see a "java.util.zip.ZipException" error in my installer log file when I try to install the MinGW support package?
71 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
MathWorks Support Team
am 21 Nov. 2016
Bearbeitet: MathWorks Support Team
am 25 Aug. 2021
When installing the MinGW Support Package, I see the following error:There was a problem installing the third-party software. To resolve this issue, contact Technical SupportI also see the following inside of my MATLAB installer log file:java.util.zip.ZipExceptionHow can I proceed with installing this Support Package?
Akzeptierte Antwort
MathWorks Support Team
am 12 Aug. 2021
Bearbeitet: MathWorks Support Team
am 25 Aug. 2021
This error was due to incomplete third-party downloads through the MATLAB Support Package installer. This issue has since been resolved. The current solution is to download and install the MinGW Support Package through the MATLAB client using the following method:
How to install MinGW 4.9.2 for use in MATLAB?
1 Kommentar
Walter Roberson
am 22 Mär. 2017
Bearbeitet: MathWorks Support Team
am 19 Mai 2021
Ichan Lo comments to Konrad Groeneveld:
I was also stuck in second step for R2017a, however I try to use microsoft visual studio professional 2015. It works for compiler C++
Weitere Antworten (2)
Jonathan Eagle
am 8 Mär. 2017
Bearbeitet: Walter Roberson
am 26 Mär. 2017
This is the response from mathworks with instructions that worked for me. The other instructions here did not.
---------------------------------
Thank you for this followup information. I think there may be some confusion with the workaround instructions, as you should not need to rename any files or folders during this process. Once you have downloaded the 5 zip files, they need to be placed in the following folders found at C:\Users\<your_username>\Downloads\MathWorks\SupportPackages\R2016b\archives\3p:
- '"mingw64runtime-v3-git20141130-gcc49-tdm64-1.zip" placed in "tdm_mingw64runtime.instrset_win64_1473452065" folder
- "binutils-2.24.51-20140703-tdm64-1.zip" placed in "tdm_mingwbinutils.instrset_win64_1473452064" folder
- "gcc-4.9.2-tdm64-1-c++.zip" placed in "tdm_mingwcpp.instrset_win64_1473452064" folder
- "gdb-7.8.1-tdm64-3.zip" placed in "tdm_mingwdebugger.instrset_win64_1473451976" folder
- "gcc-4.9.2-tdm64-1-core.zip" placed in "tdm_mingwgcc.instrset_win64_1473452033" folder
Once the zip files are placed in each of these folders, you need to run the same MinGW support package installer again (from Add-Ons Explorer). The installation will now proceed and skip over the section where it needs to download third-party files.
0 Kommentare
Jed Frey
am 14 Apr. 2017
The reason this is happening is because SourceForge redid their web structure. The Matlab downloading tool isn't respecting their 302 status code.
If you open the 1kB 'zip' files with Notepad++ (or any other text editor) you will see something like this:
<html>
<head>
<title>302 Found</title>
</head>
<body>
<h1>302 Found</h1>
The resource was found at <a href="https://iweb.dl.sourceforge.net/project/tdm-gcc/MinGW-w64%20runtime/GCC%204.9%20series/mingw64runtime-v3-git20141130-gcc49-tdm64-1.zip">https://iweb.dl.sourceforge.net/project/tdm-gcc/MinGW-w64%20runtime/GCC%204.9%20series/mingw64runtime-v3-git20141130-gcc49-tdm64-1.zip</a>;
you should be redirected automatically.
</body>
</html>
The fix should be as simple as either:
- Teaching the downloading tool to respect HTTP return codes.
- Fix the URLs in the packager.
For those downloading the files manually, make sure to delete the existing 1kB files. Windows will sometimes automatically just rename the files with (1) at the end instead of asking if you want to replace the existing files.
0 Kommentare
Siehe auch
Kategorien
Mehr zu MATLAB Support for MinGW-w64 C/C++ Compiler finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!