Matlab Compiler Runtime 9.6 installation cannot be moved

20 views (last 30 days)
I have the MCR 9.6 installed, however I want to be able to move it without uninstalling and reinstalling everytime. When I do move it (to my documents folder for example), I get missing dll errors such as mclmcrrt9_6.dll not being found by an application that links against libeng and libmx. I'm assuming the installer put the path to the runtime somewhere on my filesystem. Are there ways of getting the MCR to be more portable, or is this just how it is?
  3 Comments
Rik
Rik on 28 Jun 2022
I don't know how the licensing would work (if it is allowed etc), but you should be able to use a program like thinstall to make the installation portable.
I don't know if the Matlab license allows it, or if that program is still around.
That could be a solution if all else fails.
Alexander Frederiksen
Alexander Frederiksen on 28 Jun 2022
@Rik Awesome, I'll look into that (: @dpb I want to have the MCR be part of my git repo, with the rest of my dependencies, instead of needing to reinstall MCR on every computer I work on. What I discovered about 5 minutes ago, is that if I copy the shared libraries from runtime/win64 to bin/win64, everything works out (which I guess makes sense, because libeng.dll and libmx.dll are in bin/win64, so putting everything right next to them makes the dll searching simpler). Another solution, I guess would be to put runtime/win64 on my executable path in my application as well (I already have bin/win64). Anyways, thanks guys! I'll try out thinstall if something else goes wrong (;

Sign in to comment.

Answers (0)

Categories

Find more on MATLAB Compiler SDK 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!