Hi Clay, Assuming you are using linux machine, there can be several reasons behind this issue, the primary reason being the incorrect installation of MCR or an incorrect specification of the path to execute the .sh file. In this case, an incorrect path specification was the source of the problem.
Here are some general troubleshooting steps for resolving this issue on Linux:
A. Install a Linux version of the MCR for 2013a from
1. Please ensure that you download a version that matches the bitness of your machine. 2. Extract the files and navigate to the corresponding folder; install MCR by typing “./install” on the command prompt. 3. Make sure you have sufficient privileges to run the setup. Please make note of the directory to which the MCR files are being installed to. 4. If the installation is successful for 2013a, you will see a “v81” folder created in this installation directory.
B. Run the executable with the right path specified.
You can run executable in two ways: . /executable.sh mcr_installation_dir/v81
Where the environment variable LD_LIBRARY_PATH can be set using the following command:
setenv LD_LIBRARY_PATH mcr_installation_dir /v81/runtime/glnxa64: mcr_installation_dir /v81/bin/glnxa64: mcr_installation_dir /v81/sys/os/glnxa64:
If the above suggestions do not help, then try the following steps: 1. Check if you have a “startup.m” file that is being automatically included in your standalone application. In that case, enclose the commands within “startup.m” under a conditional statement:
If (isdeployed) ; else …original statements go here… end
2. Sometimes the mcrCache is corrupted. Set the "MCR_CACHE_ROOT" environment variable to a directory that you have read and write permissions to.
3.Sometime such error arises if the environment is not setup in UNIX systems. To resolve this issue, set the library path in Linux properly according to the below documentation: