Why am I getting an error stating 'This folder name is invalid. The destination cannot be named private' when installing MATLAB or other MathWorks products??
47 ビュー (過去 30 日間)
MathWorks Support Team 2014 年 9 月 17 日
When installing MATLAB (or when installing a support package in the Add-Ons explorer), 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"?
MathWorks Support Team 2022 年 9 月 29 日
編集済み: MathWorks Support Team 2022 年 9 月 29 日
If MATLAB is installed:
This error may occur on MacOS when installing a Support Package using the Add-Ons explorer if there is a space or other special character in the file path to the Support Package install directory.
Enter the following command in the MATLAB Command Window to output the full path to your Support Package install directory:
If the file path has any spaces or special characters in it, please remove any spaces or special characters from the file path then close and re-open MATLAB and try to install the Support Package again.
If you can't modify the existing file path, you can point MATLAB to a different directory to install the Support Package in instead. You must have write permissions in the folder, and the file path to the folder must not contain any spaces or special characters. To do so, run the following command:
matlabshared.supportpkg.setSupportPackageRoot(<path to new Support Package install directory>)
Then close and re-open MATLAB and try to install the Support Package again.
If MATLAB is not installed:
Please try starting the installer with a -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.
その他の回答 (1 件)