On Windows, to run the MCRInstaller:
1. Copy <matlabroot>\toolbox\compiler\deploy\win32\MRCInstaller.exe to the server
machine.
2. Run
MCRInstaller.exe.
On Linux, to run the MCRInstaller:
1. In MATLAB, at the MATLAB prompt, execute the command
buildmcr.
2. Copy <matlabroot>/toolbox/compiler/deploy/MCRInstaller.zip to the server machine.
3. On the server machine, unzip
MCRInstaller.zip into a directory (<mcr_root>).
4. Update the dynamic library path for the user running the GenePattern server:
setenv LD_LIBRARY_PATH
<mcr_root>/runtime/glnx86:
<mcr_root>/sys/os/glnx86:
<mcr_root>/sys/java/jre/glnx86/jre1.4.2/lib/i386/client:
<mcr_root>/sys/java/jre/glnx86/jre1.4.2/lib/i386:
<mcr_root>/sys/opengl/lib/glnx86:${LD_LIBRARY_PATH}
On Mac OS X, to run the MCRInstaller:
1. In MATLAB, at the MATLAB prompt, execute the command buildmcr.
2. Copy <matlabroot>/toolbox/compiler/deploy/MCRInstaller.zip to the server machine.
3. On the server machine, unzip
MCRInstaller.zip into a directory (<mcr_root>).
4. Update the library path for the user running the GenePattern server:
setenv DYLD_LIBRARY_PATH
<mcr_root>/<ver>/runtime/mac:
<mcr_root>/<ver>/sys/os/mac:
<mcr_root>/<ver>/bin/mac:
/System/Library/Frameworks/JavaVM.framework/JavaVM:
/System/Library/Frameworks/JavaEmbedding.framework/JavaEmbedding:
/System/Library/Frameworks/JavaVM.framework/Libraries
setenv XAPPLRESDIR <mcr_root>/<ver>/X11/app-defaults
Writing the Launcher Script
When the MATLAB Compiler generates a standalone executable, it also generates a Component Framework (.ctf)
file. The .ctf file must be on the path when you run the standalone executable. The easiest way to address this
requirement is to create a launcher script (.bat or .sh file) that adds the .ctf file to the PATH or LIBPATH and then
runs the standalone executable.
On Windows, for example, to launch the MATLAB executable
analyzeThis.exe, create a launcher script,
mllaunch.bat, that contains the following lines:
set LIBDIR=%1
set PATH=%LIBDIR%;%PATH%
analyzeThis %2 %3
On Linux, for example, to launch the MATLAB executable analyzeThis.exe, create a launcher script,
mll
aunch.sh, that contains the following lines:
#!/bin/csh
export MCR_ROOT=<path where you installed the files from MCRInstaller.zip>
export LD_LIBRARY_PATH=$1:$MCR_ROOT/runtime/glnx86:$MCR_ROOT/sys/os/glnx86:\
$MCR_ROOT/sys/java/jre/glnx86/jre1.4.2/lib/i386/client:\
$MCR_ROOT/sys/java/jre/glnx86/jre1.4.2/lib/i386:\
$MCR_ROOT/sys/opengl/lib/glnx86
export PATH=$1:$PATH
chmod a+x $1/analyzeThis
analyzeThis $2 $3
12
Commenti su questo manuale