필터 지우기
필터 지우기

offline installation of support package has corrupted the pathdef file

조회 수: 6 (최근 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 CenterFile Exchange에서 Introduction 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