Can I just tar an installed version of the MCR and distribute it?
2 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
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 comentario
Harsheel
el 21 de Oct. de 2014
Editada: Harsheel
el 21 de Oct. de 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.
Respuestas (0)
Ver también
Categorías
Más información sobre Introduction to Installation and Licensing en Help Center y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!