Why do I receive "Could not find version X.X of the MATLAB Runtime" when running my compiled app, although MATLAB Runtime is installed?

378 views (last 30 days)
When I run my compiled application on a Windows deployment machine with the MATLAB Runtime (MCR) installed, I receive the error message:
Could not find version 9.12 of the MATLAB Runtime.
Attempting to load mclmcrrt9_12.dll
Please install the correct version of the MATLAB Runtime.
Contact your vendor if you do not have an installer for the MATLAB Runtime.
Or for older MATLAB versions:
Could not find version 8.2 of the MCR.
Attempting to load mclmcrrt_2.dll
Please install the correct version of the MCR.
Contact your vendor if you do not have an installer for the MCR.

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 28 Jul 2023
Edited: MathWorks Support Team on 28 Jul 2023
Please check if you have the correct version of MATLAB Runtime (MCR) installed. To download MATLAB Runtime, please go to the following link:
If you have installed the correct version of the MATLAB Runtime, this error is most likely because the required MATLAB Runtime is not found on the Windows system path.
To check the system path in Windows 10 or 11:
  1. Find "Advanced System Settings" using Windows search.
  2. Click "Environment Variables..."
  3. Locate the variable "Path" in the "System variables" table. Select it and click "Edit..."
  4. Ensure that a folder path like the following is located somewhere in the system path. If it is not, add it manually:
  • For 64-bit Installation:
C:\Program Files\MATLAB\MATLAB Runtime\R2023a\runtime\win64
  • For 32-bit Installation:
C:\Program Files (x86)\MATLAB\MATLAB Compiler Runtime\v90\runtime\win32
.
In some cases, the MCR was not added to the path due to a lack of administrator privileges. In this case, you may not be able to add it to the system path and instead will have to add it to the user path. The user path is appended to the system path when the path is searched; however, you will have to do this for each user account that needs to use the MCR.
Refer to the following link for more information regarding the MATLAB Runtime path, including instructions for Linux and macOS:
In the event that the error still occurs after the above measures, close all instances of MATLAB and try re-running the application.

More Answers (0)

Categories

Find more on Introduction to Installation and Licensing in Help Center and File Exchange

Products


Release

R2013b

Community Treasure Hunt

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

Start Hunting!