REFLEX Executable Mac (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 R2023a from reflex website: https://reflex.irdl.fr/Reflex/reflex.html you can download it from the "download MCRInstaller" button Double clicking the installer extracts the necessary files and automatically starts the installer. When the MATLAB Runtime installer starts, it displays a dialog box. Read the information and then click Next to proceed with the installation. NOTE: 1 - You will need administrator rights to run the MATLAB Runtime installer. 2- You may need to add the path to the matlab library To do this: 1- Open a console (command prompt) on your Mac 2- Go to the root to find the .bash_profile file that configures the path at startup. 3- Open this file with an editor ("nano" for example?) and add the following to the file: export DYLD_LIBRARY_PATH="${DYLD_LIBRARY_PATH:+${DYLD_LIBRARY_PATH}:}\". /Applications/MATLAB/MATLAB_Runtime/R2023a/runtime/maci64:} /Applications/MATLAB/MATLAB_Runtime/R2023a/bin/maci64:}\ /Applications/MATLAB/MATLAB_Runtime/R2023a/sys/os/maci64:\ /Applications/MATLAB/MATLAB_Runtime/R2023a/extern/bin/maci64" save and quit. Restart your mac and now the matlab libraries will be in the path. 2. First Installation and start a - extract the zip file in a Reflex folder b - to run the shell script, you need to open a command prompt on your Mac and use the cd command to go to Reflex folder. c - type : ./run_REFLEX.sh at Mac command prompt. is the directory where version 9.10 of the MATLAB Runtime is installed. For example,if you have version of the MATLAB Runtime installed in /Applications/MATLAB/MATLAB_Runtime/R2023a, run the shell script as: ./run_REFLEX.sh /Applications/MATLAB/MATLAB_Runtime/R2023a 3. Update. We strongly recommend that you install the correct version of MCR, which is the one supplied with the reflex software. When in doubt, it's best to install it again. a - extract the reflex.zip file b - replace the run_REFLEX.sh file in the reflex folder by the new one 4. Appendix Mac systems: If the environment variable DYLD_LIBRARY_PATH is undefined, set it to the following string: MR/v910/runtime/maci64:MR/v910/sys/os/maci64:MR/v910/bin/maci64 If it is defined, set it to the following: ${DYLD_LIBRARY_PATH}:MR/v910/runtime/maci64:MR/v910/sys/os/maci64:MR/v910/bin/maci64 For more detailed 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 Mac machines, 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, you can run the shell script file run_REFLEX.sh instead of setting environment variables.