Matlab R2019a Runtime Installer not recognized in app designer

47 vues (au cours des 30 derniers jours)
James Oldfield
James Oldfield le 14 Août 2019
Commenté : Anna Fritz le 20 Juil 2021
I have been trying to compile a standalone app made in app designer, using the application compiler UI. I want to include the matlab runtime in the package, and have selected this option in the compiler. When hitting package I get the 'Runtime not found' dialog with options of Download from web, and specify location. I cannot use download from web as the firewall and proxy setting my work use will not allow the connection. Therefore I downloaded the runtime installer for R2019a from the mathworks website, and got the file: MATLAB_Runtime_R2019a_Update_4_win64.zip. However when I specifiy this file in the Compiler Preferences dialog box, I get an error saying 'The file is not a valid MATLAB Runtime installer for this version of MATLAB'. I have tried redownloading the file several times, and also saving it in several different loactions, but the same error appears every time.
  10 commentaires
dong zhang
dong zhang le 16 Nov 2020
Actually,this qustion is very easy.Fist,you must download the right version of the runtime,and the version must match with you matlab version.After this,open the matlab,and at the top of the menu click"preferences",select the MATLAB Complier,at the right side,select the downloaded of the runtime path.It's a "*.zip "file.For example G:\MATLAB_Runtime_R2019a_win64.zip.
Anna Fritz
Anna Fritz le 20 Juil 2021
I am having the same error and this isn't working for me. Do you have any other suggestions? Thanks!

Connectez-vous pour commenter.

Réponses (6)

Christian Rynek
Christian Rynek le 19 Fév 2020
Hi,
I had the same problem today. I downloaded the file (MATLAB_Runtime_R2019b_Update_4_win64.zip) and the compiler told me 'The file is not a valid MATLAB Runtime installer for this version of MATLAB'. I have entered the command 'compiler.runtime.download' in the command window in MATLAB R2019b. After some time I received this message in the command window:
MATLAB Runtime installer has been downloaded to:
"C:\Users\rynech1\AppData\Local\Temp\rynech1\MCRInstaller9.7\MATLAB_Runtime_R2019b_win64.zip"
After that I tried to creat the standallone application (Runtime included in package) again and it worked.
I hope this will help you.
Best greatings
Christian

Esteban
Esteban le 12 Fév 2020
Had the same problem, since the runtime downloads from the website all look like updates or at least are not recognized as installers.
Run the command
mcrinstaller
If it returns empty, then I managed to download the installer with the following command:
compiler.runtime.download
It takes a while and has no progress bar, so have patience. The practical thing is it configures the compiler path atuomatically.
  2 commentaires
Ahmed Salih
Ahmed Salih le 14 Fév 2020
I have the same problem.
And when I run compiler.runtime.download.
I got the error below.
Error using compiler.runtime.download
Unable to open output file:
'/home/amaa11/.mcrCache9.7/../MCRInstaller9.7/MATLAB_Runtime_R2019b_Update_3_glnxa64.zip' for writing. Common reasons include that the file exists and does not have write permission or the folder does not have
write permissions.
How this could be fixed?
Charles Lewis
Charles Lewis le 17 Fév 2020
Esteban,
Unfortunately I can't use the download function through Matlab due to company restrictions. Might you be able to take the time to show your Matlab folder path with regards to the Compiler Runtime? Does it appear to utilise the .zip file directly or does it install it into your toolbox/Compiler folder?
I don't know why this is so difficult; it's not at all clear through documentation how to set this up.
Many thanks for your time
Charlie

Connectez-vous pour commenter.


Gholamreza Akbarizadeh
Gholamreza Akbarizadeh le 17 Jan 2020
Dear tao hu,
Please tell us more explanations. How did you do it?! I also downloaded the runtime installer for R2019a from the mathworks website, and got the file: MATLAB_Runtime_R2019a_Update_7_win64.zip. However when I specifiy this file in the Compiler Preferences dialog box, I get an error saying 'The file is not a valid MATLAB Runtime installer for this version of MATLAB'. I have tried redownloading the file several times, and also saving it in several different loactions, but the same error appears every time. What is the problem?

Matias Peltoketo
Matias Peltoketo le 19 Fév 2020
Hi!
As Christian Rynek says, command
compiler.runtime.download
works since it downloads the same update of the MATLAB Runtime that your MATLAB is. The key for solving this issue is that you should have the same update version of the MATLAB runtime as your MATLAB is. Try command
version -description
to see, what MATLAB update you have. If this doesn't match with the MATLAB runtime version (i.e. MATLAB_Runtime_R2019b_Update_4_win64.zip), you have to update your MATLAB to the same version. This can be done with Add-Ons -> Manage Add-Ons -> Updates. After you have updated your MATLAB to the current version, you should be able to download the current version of Runtime from https://se.mathworks.com/products/compiler/matlab-runtime.html.
As for finding some other version of MATLAB Runtime, I couldn't find any page where it would be possible to download previous updates of MATLAB Runtime. I think this is something that should be improved.
Hopefully this helped!
Best regards,
Matias

J Liang
J Liang le 1 Avr 2020
Modifié(e) : J Liang le 1 Avr 2020
It's because you need the correct version of MCR matching you Matlab version. But https://www.mathworks.com/products/compiler/matlab-runtime.html only provides MCR zip for the lastest update. In reality it's very common for offline computers from university and cooperation are still working with a out-dated version.
You just need to follow the first link I posted and tweak the url to download the correct MCR version. In my case I am working with the original version of 2019a, aka no update, the coresponding MCR can be downloaded on https://ssd.mathworks.com/supportfiles/downloads/R2019a/Release/0/deployment_files/installer/complete/win64/MATLAB_Runtime_R2019a_win64.zip

Chame Frank
Chame Frank le 8 Sep 2020
I solve it, Thanks!
After hours exploration,I find how this problem happened,and how to solve it.
  • The error occurred because the downloaded MCRInstaller version did not match the MATALB version you have installed on your computer.
Look at the website: https://www.mathworks.com/products/compiler/matlab-runtime.html..html, you will found which MCRInstaller version match your installed MATLAB version, and you download it,
But wait a mimute,go to the download manager to see what version you actually download, like this:
What does **Update_8** mean?
Then you shuld go to the MATLAB you have installed to see the exact version, because MATLAB R2019a has multiple updates exist,but the https://www.mathworks.com/products/compiler/matlab-runtime.html..html only give the latest MCRInstaller version which match the latest MATLAB version.
You will found:
If you click "continue", you will update your MATLAB to the latest vesion, then you can configure the MCRInstaller download from the website successfully!
  • If you do not to update your MATLAB version ,you should find the exact MCRInstaller version to match your MATLAB version , I think Christian Rynek's method is good ,and I followed his method successfully.

Catégories

En savoir plus sur Introduction to Installation and Licensing dans Help Center et File Exchange

Produits


Version

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by