MATLAB Compiler Previous page   Next Page

Installing the MCR and MATLAB on the Same Machine

You do not need to install the MCR on your machine if your machine has MATLAB installed on it and that version of MATLAB is the same as the version of MATLAB that was used to create the deployed component.

Modifying the Path

If you do install the MCR on a machine that already has MATLAB on it, you must adjust the path according to your needs. To run the deployed component, the MCR run-time directory must appear prior to the MATLAB run-time directory on the path. To run MATLAB, the MATLAB run-time directory must appear prior to the MCR run-time directory.

Windows.   To run deployed components, <mcr_root>\<ver>\runtime\win32 must appear on your system path before <matlabroot>\bin\win32. To run MATLAB, <matlabroot>\bin\win32 must appear on your system path before <mcr_root>\<ver>\runtime\win32.

UNIX.   To run deployed components, the setenv LD_LIBRARY_PATH and setenv XAPPLRESDIR commands for your UNIX platform must appear on your library path before <matlabroot>/bin/<arch>. See Step 2 of the UNIX section of Installing the MCR on a Deployment Machine. for the platform-specific commands.

To run MATLAB, <matlabroot>/bin/<arch> must appear on your library path before the setenv LD_LIBRARY_PATH and setenv XAPPLRESDIR commands for your UNIX platform.


Previous page  Working with the MCR Deploying a Stand-Alone Application on a Network Drive Next page

© 1994-2005 The MathWorks, Inc.