Standalone executable can't find Matlab Runtime, even though Runtime is installed. How do I fix this?

조회 수: 84 (최근 30일)
I successfully created a standalone executable from my Matlab code. I can compile it and run it on the same computer, and all looks good.
I now want to try running it on a "target" computer. I compiled the executable using Matlab 2016a (Runtime 9.0.1). I downloaded the same version of Matlab Runtime on the target computer (9.0.1), and I can see it in C:/Program Files/MATLAB/MATLAB Runtime/v901/. (There's also an older version of Runtime, v85.)
However, when I try to run the executable on the target computer it gives me this error:
Could not find version 9.0.1 of the MATLAB Runtime.
Attempting to load mclmcrrt9_0_1.dll.
Please install the correct version of the MATLAB Runtime.
But as far as I know, I do have Runtime 9.0.1 installed! Why can't my executable find it?

채택된 답변

Shruthi Mysore Sadashiva
Shruthi Mysore Sadashiva 2017년 8월 2일
I understand that you have a correct version of MATLAB runtime installed in the target machine. You could find the list of different mcr installers on : https://www.mathworks.com/products/compiler/mcr.html
Along with this, your system variable "PATH" should contain the installed MATLAB Runtime folder path. This document link gives the information on the same: https://www.mathworks.com/help/compiler_sdk/cxx/mcr-path-settings-for-run-time-deployment.html#btnytqp-5

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Introduction to Installation and Licensing에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by