An error when installing 'MATLAB Support for MinGW-w64 C/C++ Compiler'

17 vues (au cours des 30 derniers jours)
ZHOU WEI FU
ZHOU WEI FU le 5 Mar 2018
Commenté : 传华 朱 le 5 Jan 2021
When I was installing 'MATLAB Support for MinGW-w64 C/C++ Compiler', an ERROR always occurred in the step 'Downloading Third-Party Package'.
I would appreciate it if you can help.THANKS.

Réponses (1)

Wentao Du
Wentao Du le 8 Mar 2018
The error may be caused by a network connection error. In some cases, a firewall or antivirus is blocking the connection.Try to deactivate any such software temporarily for the download.
Workaround is to install MinGW Compiler manually:
1. Delete the MinGW installation files from: C:\Users\<username>\MATLAB\Downloads\SupportPackages\R2016b\downloads\R2016b If you do not find the MinGW files continue from step 2.
2. Download the installation files from the following webpage:
You will need the file tdm64-gcc-4.9.2.exe for 64-bit.
3. Start the installation. Deactivate the option 'Check for updates' on the welcome screen. Choose a path without spaces, e.g.: C:\TDM-GCC-64
4. After the installation create the environment variable: MW_MINGW64_LOC=C:\TDM-GCC-64 This is described on the following page: http://www.mathworks.com/help/matlab/matlab_external/compiling-c-mex-files-with-mingw.html
5.Restart MATLAB and type below command in MATLAB command prompt:
>> mex -setup
This should now recognize the MinGW.
  3 commentaires
Kh zaa
Kh zaa le 5 Juil 2018
can you please tell me what i should do in step 4 ?

Connectez-vous pour commenter.

Catégories

En savoir plus sur 安装和许可简介 dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!