Matlab Compiler is not linked to Matlab
Show older comments
Hello, I just installed Matlab and the Matlab Compiler for 2017a. I want to use the mcrinstaller because I have an executable which runs with mcr 7.13. If I type in mcrinstaller into matlab it says that there isn't a matlab compiler installed. I also added this C:\Program Files\MATLAB\MATLAB Runtime\v92\runtime\win64 to my path variable. Do I have to do something else to link matlab to the matlab compiler so that I can run the command the mcrinstaller?
Thanks for your help!
6 Comments
Yixiao Fan
on 24 Aug 2017
I have the same question, have you solved it yet?
Walter Roberson
on 24 Aug 2017
I do not think that you installed the MATLAB Compiler product. I think you only installed one of the MATLAB Runtime libraries for use with programs compiled with the Compiler product
Steffen Koop
on 29 Aug 2017
Edited: Walter Roberson
on 29 Aug 2017
Walter Roberson
on 29 Aug 2017
Please re-read the documentation there. I am automatically re-directed to the English version of the page, but I saw enough of the German version that I could tell it said much the same thing:
"MATLAB Runtime
Run compiled MATLAB applications or components without installing MATLAB
The MATLAB Runtime is a standalone set of shared libraries that enables the execution of compiled MATLAB applications or components on computers that do not have MATLAB installed."
This is not a compiler itself: it is a support library for things that are already compiled.
For example, every program compiled by MATLAB Compiler needs to know how to allocate memory for variables. Suppose that code required 20 megabytes. You could have the code for that in every compiled program; if you had 10 different compiled programs on your system, that would add up to 10*20 = 200 megabytes. It is the same code for each program, so a different way is to put the code into a library that can be called by all of the different compiled programs: then it would only take the 20 megabytes once no matter how many different compiled programs you had on your system.
Steffen Koop
on 4 Sep 2017
Walter Roberson
on 4 Sep 2017
You need to get MCR 7.13 (for R2011b) from whom-ever created the executable you are using. The licensing for MCR was different back then: it was permitted back then to make compiled executables available for anonymous download, but access to MCR had to be controlled. You will not be able to get MCR 7.13 alone from Mathworks.
(Note: if you have a MATLAB Compiler license for any later release, you could download an earlier release of MATLAB Compiler and get MCR that way.)
There is no way to use a more up-to-date release to run something compiled with an earlier release.
Answers (2)
Faiz Gouri
on 18 Aug 2017
1 vote
Check if you have MCRInstaller at this location- 'C:\Program Files\MATLAB\R2017a\toolbox\compiler\deploy\win64\MCRInstaller.exe'
If not, try to re-install MATLAB and MATLAB Compiler. If that does not resolve the issue, contact MathWorks Technical Support
1 Comment
Steffen Koop
on 21 Aug 2017
The MCRInstaller is not started from inside Matlab. It is the idea of the Matlab runtime and compliled application to run independent from Matlab. So start the MCRInstaller from a shell of the operating system.
1 Comment
Steffen Koop
on 21 Aug 2017
Categories
Find more on Introduction to Installation and Licensing in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!