MATLAB permission error in Linux Ubuntu 18.04

조회 수: 22 (최근 30일)
Mohd Shihabuddin Khan
Mohd Shihabuddin Khan 2019년 8월 14일
댓글: Mohd Shihabuddin Khan 2019년 8월 14일
I've installed MATLAB in Ubuntu 18.04.
When I open MATLAB it gives me a warning that the desktop configuration was not saved succesfully. When I try to use any command in the command window, it gives me an exception.
The desktop configuration was not saved successfully
>> clear
An error was encountered while saving the command history
java.io.FileNotFoundException: /home/shihab/.matlab/R2019a/History.xml (Permission denied)
at java.io.RandomAccessFile.open0(Native Method)
at java.io.RandomAccessFile.open(RandomAccessFile.java:316)
at java.io.RandomAccessFile.<init>(RandomAccessFile.java:243)
at com.mathworks.mde.cmdhist.AltHistoryCollection$CommandSaver.run(AltHistoryCollection.java:1214)
at java.lang.Thread.run(Thread.java:748)
Any help would be appreciated.
I tried two commands, but they didn't help
sudo chmod -R 777 /usr/local/MATLAB/R2019a/
sudo chown -R $LOGNAME: /usr/local/MATLAB/R2019a
But neither of them worked. If I use MATLAB with from a root terminal, I don't get any errors.
  댓글 수: 2
Walter Roberson
Walter Roberson 2019년 8월 14일
/home/shihab/.matlab/R2019a/History.xml is the file that is having the problem. You should be granting permission for that file specifically or for /home/shihab/.matlab/R2019a directory.
Mohd Shihabuddin Khan
Mohd Shihabuddin Khan 2019년 8월 14일
Thanks a lot Walter. It worked. Now that I look at it, it was so obvious. Thanks for helping out. :)

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Startup and Shutdown에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by