can I install the minGW addon offline?

59 ビュー (過去 30 日間)
Robert Hutchinson
Robert Hutchinson 2017 年 1 月 23 日
コメント済み: MatLab 2023 年 2 月 22 日
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

回答 (2 件)

Thomas Sully
Thomas Sully 2018 年 5 月 23 日
"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?

Sruthi Geetha
Sruthi Geetha 2017 年 1 月 30 日
編集済み: Sruthi Geetha 2017 年 10 月 30 日
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 件のコメント
MatLab
MatLab 2023 年 2 月 22 日
Does this mean that we must use the UI to do the installation, that we cannot silently install it on a headless server?

サインインしてコメントする。

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by