I receive "Could not find version 9.11of the MATLAB Runtime" when running my compiled app, my MATLAB Runtime is 9.13. so this specifically need 9.11 to be run?

117 次查看(过去 30 天)
I have a file and I want to open it but it gives me a runtime error. My previous version was 2021a.
I found a similar question on mathwork so I went to this link to check my runtime:
my version is 2022b and this error coresponds to 2021b. So, I should uninstall my current version to a 2021b to fix it? and there is no other way?
but why this cant be run on higher versions?

采纳的回答

Image Analyst
Image Analyst 2023-1-18
You are trying to run a compiled program somebody made with R2021b. It doesn't matter what version you have but if you don't have the MATLAB 2021b development environment program on your computer, then you'll need to install the r2021b (9.11) run time library. You can get all/any run-time libraries here:
You can have multiple development environment versions and multiple run-time library versions on your computer simultaneously. The main thing is that if you are trying to run a compiled standalone program built with some particular version then you must have that same version of the run-time library on your computer, or the development IDE for that version. You don't have either, so to fix, you need to get the 9.11 from the link I gave above.
The reason that the run-time library needs to be matched to the developement version it was compiled with is because sometimes new functions are introduced (and so they won't be in older versions), and sometimes old functions are finally deprecated/removed. So you need a run-time library that has exactly the same set of functions that were in the version the person compiled it with.

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 MATLAB Compiler 的更多信息

产品


版本

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by