MATLAB: Do I receive an error when running a standalone application compiled with MATLAB Compiler 4.10 (R2009a) on Linux

MATLAB Compilermccrun_magicsquarerun_magicsquare.sh

I have compiled my MATLAB file called 'mytest.m' into a standalone application on a Linux machine. I am trying to run the MATLAB generated script 'run_mytest.sh', which sets the environment variables and runs the standalone application, as follows:
./run_myapp_Linux32.sh /home/username/MCR
However I get the following error:
------------------------------------------
Setting up environment variables
---
LD_LIBRARY_PATH is .:/home/username/MCR/runtime/glnx86:/home/username/MCR/bin/glnx86:/home/username/MCR/sys/os/glnx86:/home/username/MCR/sys/java/jre/glnx86/jre/lib/i386/native_threads:/home/username/MCR/sys/java/jre/glnx86/jre/lib/i386/server:/home/username/MCR/sys/java/jre/glnx86/jre/lib/i386/client:/home/username/MCR/sys/java/jre/glnx86/jre/lib/i386
./mytest: error while loading shared libraries: libmwmclmcrrt.so: cannot open shared object file: No such file or directory
The directory /home/username/MCR contains the MATLAB Compiler Runtime (MCR) Installation.

Best Answer

This enhancement has been incorporated in Release 2010a (R2010a). For previous product releases, read below for any possible workarounds:
The MATLAB Compiler generated run script, that is, 'run_mytest.sh' expects the path to the specific MATLAB Compiler Runtime (MCR) version. For example, use the following command to run the script:
./run_mytest.sh /home/username/MCR/v710