Why can I not re-install or uninstall MATLAB if the version is R2008a or prior?
MATLAB: Does re-installation or uninstallation of MATLAB fail for releases R2008a or prior
Related Solutions
Sometimes support packages become corrupt and cannot complete installation or encounter errors that you cannot get past. In these scenarios, it is beneficial to perform a clean re-installations of your Support Package rather than a regular re-installation. To do this, follow these steps:
For R2016b and newer
1. Open MATLAB and choose the drop-down menu for "Add-Ons", followed by the "Manage Add-Ons" option. Find your Support Package on the generated list and click the "Uninstall" button across from it. Once this uninstall is complete, close out of MATLAB.
2. Navigate to the following folder on your computer and delete the contents you find there:
Windows = C:\ProgramData\MATLAB\SupportPackages\R20XXx\Mac = /Users/<username>/Documents/MATLAB/SupportPackages/R20XXx/Linux = /home/<username>/Documents/MATLAB/SupportPackages/R20XXx/NOTE: ProgramData is a hidden folder, but you can use the shortcut %ProgramData% from Windows Search to jump right to the current user's ProgramData folder.
3. Open the 'Downloads' folder on your computer, then navigate to \MathWorks\SupportPackages\R20XXx\. Delete the contents of the "R20XXx" folder.
4. Run the Support Package installer again and re-install your Support Package now.
For R2016a and prior
1. Open MATLAB and choose the drop-down menu for "Add-Ons", followed by the "Get Hardware Support Packages" option. In the Support Package Installer choose the "Uninstall" radio button, then click "Next". Follow the remaining menus to uninstall the desired Support Package.
2. Navigate to the following folder on your computer and delete the contents you find there:
Windows = C:\MATLAB\SupportPackage\R20XXx\Mac = /Users/<username>/Documents/MATLAB/SupportPackages/R20XXx/Linux = /home/<username>/Documents/MATLAB/SupportPackages/R20XXx/
3. Open the 'Downloads' folder on your computer, then navigate to \MathWorks\SupportPackages\R20XXx\. Delete the contents of the "R20XXx" folder.
4. Open MATLAB again and run the following commands:
>>restoredefaultpath>>savepath
5. Run the Support Package installer again and re-install your Support Package now.
NOTE:
This will remove all support packages that you currently have installed.
There are a few reasons why this error can occur:
1) The DAEMON line in your license.dat file is incorrect or missing.
For license server, the DAEMON line should read:
Windows
---------
DAEMON MLM $MATLAB\etc\win{32|64}\mlm.exe ($MATLAB\flexlm\mlm.exe for releases prior to R2010b on Windows)
(where $MATLAB is the MATLAB installation directory)
Linux/Mac
------------------
DAEMON MLM $MATLAB/etc/glnx{86|a64}/MLM
(where $MATLAB is the MATLAB installation directory)
(NOTE: prior to R2011a, the DAEMON line on Linux/Mac was "DAEMON MLM $MATLAB/etc/glnx{86|a64}/lm_matlab")
NOTE: Once you have made changes to your license file, be sure to restart the network license manager for these changes to take effect. For more information on how to restart the license manager, see the Related Solution listed below.
2) The SERVER line in the license.dat file on a client does not match the license.dat file on the server.
If you are running MATLAB using a concurrent license and you are on a client machine, make sure the SERVER line in your license.dat file matches that of the license.dat file on your license server.
The license file on the client machine varies depending upon operating system and version. For R2008a and above, the license file is generally called network.lic and is located in $MATLAB\licenses (where $MATLAB is the MATLAB installation directory). For versions prior to R2008a, the license file will generally be the following:
Windows
---------
$MATLAB\bin\win32 (for 32-bit MATLAB) $MATLAB\bin\win64 (for 64-bit MATLAB)
Linux/Unix/Mac
------------------
$MATLAB/etc
(where $MATLAB is the MATLAB installation directory)
The license.dat file on the server machine is located in:
$MATLABROOT/etc ($MATLAB\flexlm for releases prior to R2010b on Windows)
(where $MATLAB is the MATLAB installation directory)
3) The TCP port number used to communicate with the license server is already being used by another application.
For more information on finding an open port, see the Related Solution listed below .
Best Answer