There is an error in the documentation for MATLAB Compiler 4.4 (R2006a) with regards to the value of the LD_LIBRARY_PATH environment variable on 64-bit Linux platforms.
On a development machine, the documentation should read:
setenv LD_LIBRARY_PATH
$MATLABROOT/sys/os/glnxa64:
$MATLABROOT/bin/glnxa64:
$MATLABROOT/extern/lib/glnxa64:
$MATLABROOT/sys/java/jre/glnxa64/jre1.5.0/lib/amd64/native_threads:
$MATLABROOT/sys/java/jre/glnxa64/jre1.5.0/lib/amd64/server:
$MATLABROOT/sys/java/jre/glnxa64/jre1.5.0/lib/amd64
setenv XAPPLRESDIR $MATLABROOT/X11/app-defaults
For a deployment machine, the documentation should read:
setenv LD_LIBRARY_PATH
$MCR_ROOT/$VER/runtime/glnxa64:
$MCR_ROOT/$VER/sys/os/glnxa64:
$MCR_ROOT/$VER/sys/java/jre/glnxa64/jre1.5.0/lib/amd64/native_threads:
$MCR_ROOT/$VER/sys/java/jre/glnxa64/jre1.5.0/lib/amd64/server:
$MCR_ROOT/$VER/sys/java/jre/glnxa64/jre1.5.0/lib/amd64:
setenv XAPPLRESDIR $MCR_ROOT/$VER/X11/app-defaults
In the preceding example, $MATLABROOT and $MCR_ROOT represent the root directories of the MATLAB ($MATLABROOT) and MATLAB Compiler Runtime (MCR) installation ($MCR_ROOT) respectively. $VER refers to the version of MCR installed (for example, v73 or v74).
Best Answer