Q: MATLAB (OS X) works fine after the initial install, but then I receive a Matlab License Manager Error -97?
Answer
To fix this, carry out the following procedure.
Note: This solution only applies to users using a Standalone MATLAB license on a Mac OSX machine that is set to use DHCP (usually a laptop).
- Quit MATLAB completely.
- Edit the file /Applications/MATLAB7/etc/lmopts.sh using TextEdit or emacs. (Change /Applications/MATLAB7 to the appropriate directory if MATLAB was installed elsewhere.)
- Find the line that contains exactly the following text:
LM_USING_DYNAMIC_HOSTNAMESdefault="0"
- Change the 0 to a 1 and save the changes.
- Then, in a terminal window, type this:
/Applications/MATLAB7/etc/lmstart
and press Enter
- Find the line that contains exactly the following text:
- Restart MATLAB.