offline installation of support package has corrupted the pathdef file

3 ビュー (過去 30 日間)
Caroline Turner
Caroline Turner 2024 年 6 月 7 日
回答済み: Simar 2024 年 6 月 10 日
I am trying to install the MATLAB Coder Interface for Deep Learning support package on an offline PC. After what appears to be a successful installation, the access permissions of the pathdef.m file have been set so that users other than the installer are unable to read the file - this means Matlab will not start for any other user of that PC.

回答 (1 件)

Simar
Simar 2024 年 6 月 10 日
Hi Caroline,
I understand that you are encountering issues with file permissions, especially with pathdef.m when installing MATLAB support packages on an offline PC. To ensure MATLAB starts correctly for every user, below are few workarounds :
1. Correct Permissions Manually: After installation, manually change permissions of pathdef.m file to ensure its readable by all intended users of the MATLAB installation. The steps to change file permissions vary depending on the operating system:
Assuming using Windows:
  • Right-click on the pathdef.m file located typically in the MATLAB installation directory (e.g., C:\Program Files\MATLAB\R20XXx\toolbox\local\pathdef.m).
  • Select "Properties" and then navigate to the "Security" tab.
  • Click "Edit" to change permissions and ensure that "Read" permission is enabled for all users or the specific users/groups who need access to MATLAB.
  • Apply the changes and close the dialog.
2. Use MATLAB to Adjust pathdef.m:
If have administrative rights or can request them temporarily, another approach is to start MATLAB as an administrator which should allow to adjust the pathdef.m file permissions from within MATLAB itself using the fileattrib function. For example:
>> fileattrib('pathdef.m', '+w', 'a')
This command makes pathdef.m writable for all users. Adjust attributes as needed for specific requirements. Please refer to the following link for more information.
3. Check for Installation Issues:
Ensure that MATLAB Coder Interface for Deep Learning support package is installed correctly. Permission issues can also stem from how installation was performed. Reinstall the package while logged in as an administrator or with elevated permissions to pre-emptively avoid permission issues.
If issue persists, consider contacting MathWorks support for assistance. Remember, when adjusting file permissions, it is crucial to maintain the security of system by not granting more permissions than necessary for the intended operation of the software.
Hope it helps!
Best Regards,
Simar

カテゴリ

Help Center および File ExchangeIntroduction to Installation and Licensing についてさらに検索

製品


リリース

R2022b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by