Ubuntu – Licence Error for Matlab 2012a on Ubuntu 12.04 (64-bit)

12.04MATLAB

I have installed Matlab 2012a on ubuntu 12.04, while providing the licence I find the following error:

Could not complete Activation because the License File could not be written to disk.  
You might not have write permission on the License File or the folder.
/usr/local/MATLAB/R2012a/licenses/license_Malhar-PC_161052_R2012a.lic  
  See your System Administrator for assistance. The specific error message text is: 
/usr/local/MATLAB/R2012a/licenses/license_Malhar-PC_161052_R2012a.lic
  (No such file or directory).

Best Answer

In this case I would try creating the directory the license should be written to. Open a terinal with Alt-Ctrl-T and enter:

sudo mkdir -p /usr/local/MATLAB/R2012a/licenses
sudo chmod a+rw  /usr/local/MATLAB/R2012a/licenses

The first two of these may already exist, and if so that's OK, just go on. Then try the license install again.

Related Question