MATLAB: Do I receive “an error status was returned by the program “xsetup” , the xwindows version of install.” when installing MATLAB under Mac OS X

MATLAB

When I try to install MATLAB on Mac OS X, I receive the following error message:
-------------------------------------------------------------------
An error status was returned by the program 'xsetup',
the X Window System version of 'install'. The following
messages were written to standard error:
Attempt to fix the problem and try again. If X is not available
or 'xsetup' cannot be made to work then try the terminal
version of 'install' using the command:
install* -t or INSTALL* -t
-------------------------------------------------------------------
Sorry! Setup aborted . . .

Best Answer

This error can occur when the license.dat file used for the installation has been saved in a format other than plain ASCII text. In order to resolve this, recreate your license.dat file using the following steps:
1. Copy and paste the text of the license.dat file from your email or web browser into the Mac Textedit application.
2. Make sure that no extra carriage returns or tab characters have been introduced into the file.
3. Choose the "Make Plain Text" option from the Format menu.
4. Choose "Save As" from the File menu and call the file "license.dat". You may receive a message asking if you would like to append ".txt" to the file name. Choose "Don't Append"
5. After creating the license.dat file place it in the directory where you will be installing MATLAB.