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

382 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:
ERROR: 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:
ERROR: 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 18 May 2022
Edited: MathWorks Support Team on 18 May 2022
Please check if you have the correct version of MATLAB Runtime 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:
  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. If you are using Windows 10, the path will display as a list. In other versions of Windows, the path will be displayed in a single text box. To make it easier to inspect, copy and paste the value into a text editor.
  5. Ensure that a folder path like the following is located somewhere in the system path. If it is not, add it manually:
  • (For 32-bit Installation) C:\Program Files (x86)\MATLAB\MATLAB Compiler Runtime\v82\runtime\win32;
  • (For 64-bit Installation) C:\Program Files\MATLAB\MATLAB Runtime\v912\runtime\win64
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 (1)

Mark Hillig
Mark Hillig on 15 May 2018
I have a system that had to be re-imaged. The files for a MATLAB compiled executable were restored to their original location. Upon trying to run the executable an error reporting version 8.2 of the MCR was missing.
I downloaded and installed the correct version of the MCR (8.2) for the 64-bit Win 7 on the machine. I confirmed the correct path was added to the PATH Env. Var. The same error is still reported.
PATH Contains: C:\Program Files\MATLAB\MATLAB Compiler Runtime\v82\runtime\win64
"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."

Products


Release

R2013b

Community Treasure Hunt

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

Start Hunting!