MATLAB: How to get the FLEXnet License Manager to start automatically at boot time on Mac OS X

MATLAB

I would like the license manager to start automatically on startup.

Best Answer

Starting with MATLAB R14, the license manager is configured to start automatically during the installation of the license manager. If you move the installation to a new computer, have an older release of MATLAB, or need to setup the license manager to start, see the instructions below:
There is a folder, MATLABLmgr, in $MATLAB/etc that automatically starts the License Manager when you start your machine. By installing and configuring this folder, you will not have to manually start the License Manager prior to starting MATLAB.
Installing the Script:
-----------------------
You must be an Administrator to install this startup folder:
1) Navigate to the top level /Library folder.
2) Create a folder within /Library called StartupItems, if it does not already exist.
3) Copy the $MATLAB/etc/MATLABLmgr folder into the StartupItems folder.
4) Run the Terminal application (/Applications/Utilities) and in the Terminal window enter the commands:
cd /Library/StartupItems/MATLABLmgr
./config_lm.sh
5) The script runs and asks you to enter the directory where MATLAB is installed for example:
MATLAB=/Applications/MATLAB6P5P2
6) The script will then ask you for your username. For example, use your own userid. To determine your userid, open the Terminal application and type whoami at the Terminal prompt. For security reasons, the userid must not be root. After the script finishes reboot your machine. During bootup, the message Starting MATLAB License Manager should appear on the screen.