MATLAB Deployment Checklist =========================== Use this checklist to successfully deploy your application, component, or library.

You can distribute a MATLAB Compiler-generated standalone application, component, or library to any target machine with the same operating system as the machine on which the application was compiled (the "source" development machine). For more information, see the documentation for the MATLAB Compiler at: http://www.mathworks.com/access/helpdesk/help/toolbox/compiler/ NOTE: Replace the items enclosed in angle brackets ( < > ) with your own values. 1. Ensure that the MATLAB Compiler Runtime (MCR) is installed on target machines, and ensure you have installed the correct version. To verify this, do the following: A. Attempt to verify the MCR exists on your system. The MCR usually resides in these locations on these platforms: Operating System ================ Windows Mac Linux/Solaris Path to MCR =========== C:\Program Files\MATLAB\MATLAB Compiler Runtime\v79 Applications/MATLAB/MATLAB_Compiler_Runtime/v79 *** No predetermined installation location *** Contact your system administrator.

NOTE: For information about the installation process and the MCR, type "help MCR" or "help mcrinstaller" at the MATLAB command prompt. B. MATLAB 2008b uses MCR version 7.9. To verify the version number of the installed MCR, type the following command: [mcrmajor,mcrminor]=mcrversion at the MATLAB command prompt. 2. Add the MCR directory to the path specified by the target system's environment variable. A. Locate the name of the environment variable to set, using the table below: Operating System ================ Windows Linux Solaris Mac Environment Variable ==================== PATH LD_LIBRARY_PATH LD_LIBRARY_PATH DYLD_LIBRARY_PATH

B. Set the path by doing one of the following: On Windows systems:

0/lib/amd64/native_th reads: <mcr_root>/v79/sys/java/jre/glnxa64/jre1.6.0/lib/sparcv9/native_th reads: <mcr_root>/v79/sys/java/jre/sol64/jre1.framework/Libraries setenv XAPPLRESDIR <mcr_root>/version/X11/app-defaults .0/lib/sparcv9 setenv XAPPLRESDIR <mcr_root>/v79/X11/app-defaults Linux x86-64 setenv LD_LIBRARY_PATH <mcr_root>/v79/runtime/glnxa64: <mcr_root>/v79/sys/os/glnxa64: <mcr_root>/v79/sys/java/jre/glnxa64/jre1.0/lib/sparcv9/server: <mcr_root>/v79/sys/java/jre/sol64/jre1. for Windows.6.0/lib/i386 setenv XAPPLRESDIR <mcr_root>/v79/X11/app-defaults Solaris64 setenv LD_LIBRARY_PATH /usr/lib/lwp: <mcr_root>/v79/runtime/sol64: <mcr_root>/v79/sys/os/sol64: <mcr_root>/v79/sys/java/jre/sol64/jre1. Right-click the icon and select Properties from the menu. specifying either win32 or win64: set PATH=C:\Program Files\MATLAB\MATLAB Compiler Runtime\v79\runtime \{win32|win64}. add the following pathname: C:\Program Files\MATLAB\MATLAB Compiler Runtime\v79\runtime\{win32|w in64} to the PATH environment variable.0/lib/i386/server: <mcr_root>/v79/sys/java/jre/glnx86/jre1. 2.6.0/lib/amd64/server: <mcr_root>/v79/sys/java/jre/glnxa64/jre1. On UNIX systems: * Add the MCR directory to the environment variable by issuing the following commands: Linux setenv LD_LIBRARY_PATH <mcr_root>/v79/runtime/glnx86: <mcr_root>/v79/sys/os/glnx86: <mcr_root>/v79/sys/java/jre/glnx86/jre1.0/lib/amd64 setenv XAPPLRESDIR <mcr_root>/v79/X11/app-defaults Mac setenv DYLD_LIBRARY_PATH <mcr_root>/version/runtime/maci: <mcr_root>/version/sys/os/maci: <mcr_root>/version/bin/maci: /System/Library/Frameworks/JavaVM.0/lib/i386/native_thre ads: <mcr_root>/v79/sys/java/jre/glnx86/jre1.6. 4.6.framework/JavaVM: /System/Library/Frameworks/JavaVM.6.6. Select the My Computer icon on your desktop.%PATH% Alternately. Click Environment Variables. by doing the following: 1.6.* Add the MCR directory to the environment variable by opening a command prompt and issuing the DOS command. Select the Advanced tab.6. specifying either win32 or win64. 3.

Collect the following files. the environment variable syntax utilizes backslashes (\).exe (application created by MATLAB Compiler) UNIX: * MCRInstaller.sh on UNIX and Mac instead of setting environment variables.ctf (if present)(Component Technology File archive. On UNIX. NOTE: On Windows.). delimited by semi-colons (. 3. delimited by colons (:)." below.exe (self-extracting MATLAB Compiler Runtime installer) UNIX: .cshrc file to include this setenv command. file extension varies by platform) * GUI2. platform-dependent on target machine) Windows: * MCRInstaller. contains compiled M-code) * GUI2.exe (self-extracting MATLAB Compiler Runtime installer) * GUI2. Requirements for Standalone Applications Built by MATLAB Compiler: ============================================================ All Platforms: * GUI2. based on what you are deploying: NOTE: GUI2.ctf will be present only if you have chosen not to embed it for the component.dmg (MATLAB Compiler Runtime installer) * GUI2 (application created by MATLAB Compiler) * run_GUI2. modify the .h (library header file) Windows: * MCRInstaller. platform-dependent on target machine.ctf (if present)(Component Technology File archive.sh (shell script that can be run to temporarily set environment paths and execute the application) Mac: * MCRInstaller.bin (MATLAB Compiler Runtime installer) * GUI2 (application created by MATLAB Compiler) * run_GUI2. See "Requirements for Standalone Applications.NOTE: To make these changes persistent after logout on UNIX or Mac machines.sh (shell script that can be run to temporarily set environment paths and execute the application) Requirements for C and C++ Shared Libraries Built by MATLAB Compiler: ============================================================ All Platforms: * GUI2. the environment variable syntax utilizes forward slashes (/). it is possible to run the shell script file run_GUI2. NOTE: When deploying standalone applications.dll (shared library.

exe (self-extracting MATLAB Compiler Runtime installer) UNIX: * MCRInstaller.* MCRInstaller.bin (MATLAB Compiler Runtime installer) Mac: * MCRInstaller.jar (Java class files and compiled M-code) Windows: * MCRInstaller.exe (self-extracting MATLAB Compiler Runtime archive) Requirements for Java Components Built by MATLAB Builder JA: ============================================================ All Platforms: * GUI2.dmg (MATLAB Compiler Runtime installer) Requirements for . contains compiled M-code) * GUI2_1_0.exe (self-extracting MATLAB Compiler Runtime archive) .NET Components Built by MATLAB Builder NE: ============================================================ Windows: * GUI2.xla (optionally created and placed in directory by the user) * MCRInstaller. contains compiled M-code) * GUI2.ctf (if present)(Component Technology File archive.ctf (if present)(Component Technology File archive.pdb (program database file . contains compiled M-code) * GUI2_1_0.dmg (MATLAB Compiler Runtime installer) Requirements for Components Built by MATLAB Builder EX: ============================================================ Windows: * GUI2.exe (self-extracting MATLAB Compiler Runtime archive) Requirements for COM Components Built by MATLAB Builder NE: ============================================================ Windows: * GUI2.if DEBUG option selected) * GUI2.bin (MATLAB Compiler Runtime installer) Mac: * MCRInstaller.dll (component assembly file) * MCRInstaller.ctf (if present)(Component Technology File archive.xml (documentation files) * GUI2.dll (COM component) * MCRInstaller.dll (COM component) * GUI2.