Hello,
I am trying to run some code compiled with Compiler.
I get this message in a Error dialog box: "Could not Find version 8.3 of the MCR. Attempting to load mclmcrrt8.dll. Please install the correct version of the MCR. Contact your vendor if you do not have an installer for the MCR."
Compiled using MATLAB R2014a on Windows 7 64 bit, with "Runtime downloaded from web" enabled. I installed the application on the same machine. MCR does seem to be installed, in C:\Program Files\MATLAB\MATLAB Compiler Runtime\v83 The application is also in C:\Program Files, not C:\Program Files (x86). I rebooted the machine after installation.
Any help would be great, thanks!

 채택된 답변

José-Luis
José-Luis 2014년 9월 18일
편집: José-Luis 2014년 9월 18일

1 개 추천

You need the right version of the Matlab Compiler Runtime installed in that machine. Also, the folder where it is installed should be in the PATH.
It looks like you haven't got it.

댓글 수: 9

Boris
Boris 2014년 9월 18일
José-Luis, thank you for your answer.
I added C:\Program Files\MATLAB\MATLAB Compiler Runtime\v83 to the PATH system variable and I get the same error.
José-Luis
José-Luis 2014년 9월 18일
Are you sure you have the right version of the compiler then?
Boris
Boris 2014년 9월 18일
When I hover on "Application Compiler" in the "APPS" tab, it says version 5.1.
José-Luis
José-Luis 2014년 9월 18일
That's woefully outdated. MCR for 2014a is 8.3.
Boris
Boris 2014년 9월 18일
You asked the version of the compiler. The MCR version is 8.3 of course.
Boris
Boris 2014년 9월 18일
OK, the path I was adding was not the full one.
The steps for adding the appropriate directory entry in the PATH are shown below:
  1. Go to Start Menu, right click "Computer" and go to Properties.
  2. Click "Advanced system settings" on the left panel.
  3. On System Properties window, Click "Environment Variables..." button.
  4. Under "System Variables" scroll for "Path" variable, select it and click "Edit" button.
  5. In "variable value" field, Type ';' in the end followed by the path to MCR location. Generally, for 64 bit MCR, the PATH should include C:\Program Files\MATLAB\MATLAB Compiler Runtime\v83\ runtime\win64
Thank you José-Luis and Support.
Image Analyst
Image Analyst 2014년 9월 18일
When you install the MCR, it normally does all that for you. I'm not sure why your paths did not get set up properly. You should not have to do all the stuff you said to do. In fact, I never do and it works fine for me. Did the MCR installation go smoothly for you?
Boris
Boris 2014년 9월 19일
Yes it went smoothly. But when I went to manually add the path to the system variable, I found that the variable was already quite crowded. I had to remove a couple of paths that weren't needed. My guess is that the MCR installer was not able to automatically add the path because of that.
Image Analyst
Image Analyst 2014년 9월 19일
There is a 2048 character limit on the Path environment variable. See http://blogs.msdn.com/b/oldnewthing/archive/2010/02/03/9957320.aspx

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

추가 답변 (1개)

Image Analyst
Image Analyst 2014년 9월 18일

0 개 추천

The MCR doesn't need to be in a folder where you have access, like My Documents. Installers get special priviliges. Generally the MCRs are installed under the Program Files\MATLAB\MATLAB Compiler Runtime\v83 folder. Look for that, especially the v83. If you don't have v83 then make sure you install the correct version. If you have that, you should be good. I know because I have lots of end-user systems set up this way.
It does not matter where (what folder) your executable (that calls the MCR) is installed.
If it still does not work, get a console window and check the PATH environment variable. Perhaps you have an old MCR before it in the path.
Of course you can also call tech support - might as well get some support for the very high price you paid for your compiler.

카테고리

도움말 센터File Exchange에서 Introduction to Installation and Licensing에 대해 자세히 알아보기

태그

질문:

2014년 9월 18일

댓글:

2014년 9월 19일

Community Treasure Hunt

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

Start Hunting!

Translated by