Can I just tar an installed version of the MCR and distribute it?
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Hi,
I wonder if the MCR for a given platform actually needs to be installed in the target computer (i.e., if the Mathworks-provided installer necessarily needs to be executed), or if it is possible to just distribute a copy of the MCR libraries (of course for the right platform) to the end user.
I'm trying to find a way to make the installation of my code as user friendly as possible. My problem is that many of my end users find the process of downloading and installing the MCR confusing (let alone the setting up of the library paths), and I'd like to distribute my code+MCR as an unique package that the user can just untar in its computer.
Does this sound possible?
thanks, Daniel
1 Kommentar
Harsheel
am 21 Okt. 2014
Bearbeitet: Harsheel
am 21 Okt. 2014
Distributing only MCR libraries will be sufficient on Linux and MAC, but not on Windows, as you need to update the PATH variable with the location of the MCR.
The above is done when you check on the box that says "Runtime included in package" in the deploytool GUI. It will package the MCR and your application as a single exe. The drawback will be that the exe size will increase as the MCR will now be a part of your application.
When the user tries to run the exe, the MCR will automatically install, put the libraries in the correct location, and set up the PATH environment variable(specific to Windows). On Linux and MAC, you do need to update the LD_LIBRARY_PATH and DYLD_LIBRARY_PATH,respectively.
Antworten (0)
Siehe auch
Kategorien
Mehr zu Introduction to Installation and Licensing finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!