can I install the minGW addon offline?
    49 views (last 30 days)
  
       Show older comments
    
Hello,
I'm attempting to install a C++ compiler for matlab, specifically MinGW-w64.
I run into issues as I cannot access the addons page through matlab. Furthermore, I've tried to download the mlpk installer and try that but I get a connection error.
After reading the supporting article, problem is probably the proxy or firewall settings. However I cannot change these as I'm trying to install the addon on a industrial laptop and cannot change these settings.
Is there any way to install this addon "offline", surely I can download the files separately and then install the addon in matlab therefore downloading the files through the standard web port not the matlab specfic one.
Please help, I really need to get a c++ compiler working.
Best Regards, Rob
0 Comments
Answers (2)
  Thomas Sully
      
 on 23 May 2018
        "1) On a computer that has Internet access and MATLAB installed, go to the Add-Ons Explorer."
Is there a way to browse the add on catalogue when corporate firewalls block the add-ons explorer?
0 Comments
  Sruthi Geetha
    
 on 30 Jan 2017
        
      Edited: Sruthi Geetha
    
 on 30 Oct 2017
  
      For R2016b: 1) On a computer that has Internet access and MATLAB installed, go to the Add-Ons Explorer.
2) On the Add-On Explorer page for the Add-On, select Download Only.
3) Transfer this entire folder to the computer which does not have internet connection.
4) Double-click the install_supportsoftware.exe file. MATLAB starts a new session and brings up the Support Software Installer.
5) Follow the instructions to install the Add-On.
Older versions:
1) Create a folder where the support package will live, for example:
C:\MinGW\
2) Place 'MinGW_R2015b_Support_Package.zip' in the above created folder.
3) Unzip the ZIP file. You should now have a 'mingw_download' folder, for example:
C:\MinGW\mingw_download\
4) Disconnect from the Internet (elese MATLAB will ask you to connect with your MathWorks account)
5) Close all MATLAB instances that might be running on your machine. Start a new instance of MATLAB.
6) Run the following command in MATLAB: >> hwconnectinstaller.launchInstaller('SupportCategory','software');
7) In the window that opens, select 'Install from folder'. Use the browse button to point to the folder you just unzipped, for example:
C:\MinGW\mingw_download\
8) Click next.
9) In the new window, you should see 'MinGW-w64 compiler version 4.9.2', and the Action 'Install' checked. Simply press next.
10) Check the 'I accept' check box if you accept the license agreement, and press next.
11) Press Next, and finally, Install.
Once the installation process is complete, please run, in MATLAB: >> mex -setup
The first line of the output should read:
MEX configured to use 'MinGW64 Compiler (C)' for C language compilation.
1 Comment
  MatLab
 on 22 Feb 2023
				Does this mean that we must use the UI to do the installation, that we cannot silently install it on a headless server?
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!


