MATLAB: Am I getting an error stating ‘This folder name is invalid. The destination cannot be named private’ when installing MATLAB

MATLAB

When installing MATLAB, why do I get an error saying "This folder name is invalid. Folder names can contain alphanumeric characters and '-', '_', '.', or '/' only. The destination folder cannot be named "private"?

Best Answer

This error is currently being looked into. The only workaround is to start installer with -tmpdir flag. To do so follow the steps below:
1) Create a folder that will be used temporarily during installation
2) Open Terminal application
3) Drag and drop install script into Terminal from your MATLAB directory that contains installation files to be installed
4) Add -tmpdir flag pointing to your newly created temporary folder in the following manner:
/Users/YourUsername/Downloads/matlab_R2014a_maci64/install -tmpdir /Users/YourUsername/Desktop/temporaryfolder/
Once this command is run in Terminal the issue should be resolved. After the installation is completed you may delete this temporary folder.