Deployed Application not able to install using web installer in CentOS6

I am using MATLAB 2019b. OS is CentOS6 (RHEL6)
I followed these steps:
1) Wrote a MATLAB code "SampleApp.m"
2) Using deploytool, build it as a "stand alone application". "Runtime download from web" options was selected.
3) In "for redistribution" folder, SampleAppInstaller_web.install file was generated.
In terminal, I tried to install it using command and got the following error
$ sudo ./SampleAppInstaller_web.install
Error: Download process failed - Couldn't connect to server
. Check your internet connectivity, proxy server, firewall, and virus scanner settings and rerun the installer.
Installation failed.
I have checked the internet settings, set the proxy and disabled firewall. The "yum update" command is also working fine.
What could be the reason for the error ? Is there any limitation of support for CentOS 6 ?

 採用された回答

Etsuo Maeda
Etsuo Maeda 2019 年 11 月 25 日

0 投票

I am not sure your network environment but you can download MATLAB Runtime from your web browser: https://mathworks.com/products/compiler/matlab-runtime.html
If you changed the proxy server in your MATALB configulation window, please try to deploy your application again because the deployed application inherits almost all of environmental settings of your latest development environment.
note: R2019b requires Red Hat 6.7 and later
HTH

7 件のコメント

Varun Pai
Varun Pai 2019 年 11 月 25 日
Thank you Maeda-san for the answer.
Actually I want to ship the installer and keep the deployed file size minimum without packaging the runtime together. So that is the reason why I have chosen "Runtime download from web".
As you told, I have checked my OS version and it is CentOS 6.10(final). Also I changed the MATLAB web proxy at Home > Preferences > MATLAB > Web
I deployed the application again and got the same error. Two different errors are found when when the installer is run with and without superuser previleges. I am attaching the image
ss.png
Etsuo Maeda
Etsuo Maeda 2019 年 11 月 25 日
Dear Varun Pai,
Thank you for updates.
In my understanding sudo ./AppInstaller_web.install is the best way to install your application.
Could you please try the following commands to confirm your Proxy settings???
url = https://mathworks.com/products/compiler/matlab-runtime.html;
data1 = webread(url);
data2 = urlread(url);
It seems that your MATLAB failes to connect mathworks.com through HTTPS port 443.
HTH
Varun Pai
Varun Pai 2019 年 11 月 25 日
Maeda-san, You are right. It is unable to connect.
Is the certificate issue related to proxy ?Screenshot.png
Etsuo Maeda
Etsuo Maeda 2019 年 11 月 26 日
Varun - san,
Thank you very much for updates.
I believe following commands will help you to enable MATLAB to access https port:
java.lang.System.setProperty('https.proxyHost', java.lang.System.getProperty('tmw.proxyHost'))
java.lang.System.setProperty('https.proxyPort', java.lang.System.getProperty('tmw.proxyPort'))
After execution of those commands, please try following commads again:
url = https://mathworks.com/products/compiler/matlab-runtime.html;
data1 = webread(url);
data2 = urlread(url);
The result of webread or urlread will be improved. Then, please try to deploy and install your App again.
deploytool % or mcc -m xxx.m command
! sudo ./AppInstaller_web.install % system command
HTH
Varun Pai
Varun Pai 2019 年 11 月 26 日
Maeda-san,
Thank you for the updates.
I tried the above method of setting java system property. But the function webread() returned the same error.
Then I added a symbolic link to the ca-certificates.crt file using following command
!sudo ln -s /etc/ssl/certs/ca-bundle.trust.crt /etc/ssl/certs/ca-certificates.crt
After this, the "certificate error" from webread(url) was gone. So I thought I got access to MATLAB runtime URL.
So I deployed my application again and run it using sudo.
But still it is showing that it is unable to connect to the server. I tried restarting the OS and reconnecting the network, but still it doesn't work.
Etsuo Maeda
Etsuo Maeda 2019 年 11 月 26 日
Hi Varun - san,
Your proxy issue seems very complicated, I will need more time for investigation... sorry.
Here is another solution. Following system commands are expected to download and install R2019b Update1 MCR, MATLAB Runtime in your Linux system.
$ wget http://ssd.mathworks.com/supportfiles/downloads/R2019b/Release/1/deployment_files/installer/complete/glnxa64/MATLAB_Runtime_R2019b_Update_1_glnxa64.zip
$ unzip MATLAB_Runtime_R2019b_Update_1_glnxa64.zip
$ sudo ./install
After installation of MCR, you can redistribute files in "for_redistribution files only" folder. This folder includes executable files only which can work in MCR installed environment.
Best
Varun Pai
Varun Pai 2019 年 11 月 28 日
Maeda-san,
Thank you for the instructions. I was finally able to solve it.
I followed the below 2 steps:
1) Added these lines in the file /etc/environment of CentOS
http_proxy=http://<proxy_address>:<portnumber>/
https_proxy=http://<proxy_address>:<portnumber>/
2) Created a symbolic link to the ca-certificates.crt file
!sudo ln -s /etc/ssl/certs/ca-bundle.trust.crt /etc/ssl/certs/ca-certificates.crt
Then run
!sudo ./AppInstaller_web.install

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

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeIntroduction to Installation and Licensing についてさらに検索

質問済み:

2019 年 11 月 22 日

コメント済み:

2019 年 11 月 28 日

Community Treasure Hunt

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

Start Hunting!

Translated by