Permission error for PREFDIR when running a stand-alone application on a different system
조회 수: 6 (최근 30일)
이전 댓글 표시
Hi!
I am trying to run a stand-alone application compiled on Linux on another Linux system. However, I am running into issues because it seems like at some point the Matlab preference folder is being accessed. However, since this folder does not exist on this system, it returns an error. I am now wondering why prefdir is included in the compiled version and how I can circumvent the stand-alone application to rely on it.
Error:
Unable to access preferences folder /home/[USERNAME]/.matlab/R2022a. Preferences folder must be writable.
Thank you!
답변 (2개)
Jan
2023년 3월 9일
If the preferences folder is hardcoded, such problems occur. Search in the code for the name of the folder an replace it by the command prefdir.
댓글 수: 7
참고 항목
카테고리
Help Center 및 File Exchange에서 MATLAB Compiler에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!