필터 지우기
필터 지우기

Error Running Compiled Script from Command Line

조회 수: 8 (최근 30일)
Kevin
Kevin 2014년 8월 1일
댓글: Image Analyst 2014년 12월 9일
I'm testing a compiled script on a target computer without MATLAB. After installing the MCR, I can click the .exe and it will run fine. However, when I run the .exe from the command line, I get the following error:
"Could not find version 8.3 of the MCR. Attempting to load mclmcrrt8_3.dll. Please install the correct version of the MCR. Contact your vendor if you do not have an installer for the MCR."
What additional step do my end users have to take to run the compiled script from the command line?

답변 (2개)

Image Analyst
Image Analyst 2014년 8월 1일
It should run. If it runs by double-clicking the icon from Windows Explorer (or whatever) then it should run from a console window also. I've never had it work one place and not the other.
It almost sounds like they don't have the same MCR that you built it with, but if that were the case, you couldn't run it by clicking the icon. Perhaps it's a path issue. Make sure the path to the MCR is listed in the PATH environment variable.
  댓글 수: 1
Kevin
Kevin 2014년 8월 1일
After adding
C:\Program Files\MATLAB\MATLAB Compiler Runtime\v83\runtime\win64
to the PATH variable, still no luck. Both the target computer and mine are 64-bit operating systems.
I had packaged the MCR with compiled script, so the MCR versions should be the same (8.3).

댓글을 달려면 로그인하십시오.


John deGrassie
John deGrassie 2014년 12월 9일
I'm having a similar issue. When testing my compiled .exe on another machine (installed via the redistribution .exe with download MCR from the web checked), I can run the .exe by the cmd line and by double-clicking; however, if I attempt to run using:
system('myCompiledFile')
or
!myCompiledFile
I get the same error that Kevin is mentioning.
  댓글 수: 1
Image Analyst
Image Analyst 2014년 12월 9일
Where are you using system() or !myCompiledFile? Those won't work from a console window at the operating system prompt. They are meant to run from within MATLAB on your development computer, not on your end-user/target computer.

댓글을 달려면 로그인하십시오.

카테고리

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