REFLEX Executable Linux (Install MATLAB Generated Standalone Application) 1. Prerequisites for Deployment You need to install MATLAB Runtime which is a free software Download and install the Mac version of the MATLAB Runtime for R2021a from reflex website: https://reflex.irdl.fr/Reflex/reflex.html you can download it from the "download MCRInstaller" button a- Unzip the MATLAB Runtime installer at the terminal using the unzip command. At the Terminal, type: unzip MCR_R2017a_glnxa64_installer.zip b- Start the MATLAB Runtime installer. At the Terminal, type: sudo ./install Note On Debian based Linux distributions, you will need to type: gksudo ./install c- When the MATLAB Runtime installer starts, it displays a dialog box. Read the information and then click Next to proceed with the installation. d- Specify the folder in which you want to install the MATLAB Runtime in the Folder Selection dialog box. Confirm your choices and click Next. e-The MATLAB Runtime installer starts copying files into the installation folder. After copying files to your disk, the MATLAB Runtime installer displays the Product Configuration Notes dialog box. This dialog box contains information necessary for setting your path environment variables. Copy the path information from this dialog box and then click Next. f- Click Finish to exit the installer. 2. First Installation and start a - extract the reflex.zip file in a Reflex folder b - install the Windows version of the MATLAB Runtime for R2017a (free) c- Run your standalone application (.sh). - Open a terminal window. - Navigate to the folder into which you installed the application. - type: ./run_REFLEX.sh at Linux command prompt. is the directory where version 9.2 of the MATLAB Runtime is installed. For example, If you have version 9.2 of the MATLAB Runtime installed in /mathworks/home/application/v92, run the shell script as: ./run_REFLEX.sh /mathworks/home/application/v92 3. Update. a - extract the reflex.zip file b - replace the reflex.sh file in the reflex folder by the new one c- Run your standalone application (.sh). - Open a terminal window. - Navigate to the folder into which you installed the application. - type: ./run_REFLEX.sh at Linux command prompt. is the directory where version 9.2 of the MATLAB Runtime is installed. For example, If you have version 9.2 of the MATLAB Runtime installed in /mathworks/home/application/v92, run the shell script as: ./run_REFLEX.sh /mathworks/home/application/v92 4. Appendix A. Linux x86-64 systems: In the following directions, replace MCR_ROOT by the directory where the MATLAB Runtime is installed on the target machine. (1) Set the environment variable XAPPLRESDIR to this value: MCR_ROOT/v92/X11/app-defaults (2) If the environment variable LD_LIBRARY_PATH is undefined, set it to the concatenation of the following strings: MCR_ROOT/v92/runtime/glnxa64: MCR_ROOT/v92/bin/glnxa64: MCR_ROOT/v92/sys/os/glnxa64: MCR_ROOT/v92/sys/opengl/lib/glnxa64 If it is defined, set it to the concatenation of these strings: ${LD_LIBRARY_PATH}: MCR_ROOT/v92/runtime/glnxa64: MCR_ROOT/v92/bin/glnxa64: MCR_ROOT/v92/sys/os/glnxa64: MCR_ROOT/v92/sys/opengl/lib/glnxa64 For more detail information about setting the MATLAB Runtime paths, see Package and Distribute in the MATLAB Compiler documentation in the MathWorks Documentation Center. NOTE: To make these changes persistent after logout on Linux, modify the .cshrc file to include this setenv command. NOTE: The environment variable syntax utilizes forward slashes (/), delimited by colons (:). NOTE: When deploying standalone applications, it is possible to run the shell script file run_REFLEX.sh instead of setting environment variables. See section 2 "First Installation and start".