I installed MATLAB in /usr/local
. Now when I try to launch it normally from dash or by typing matlab
in terminal, it starts up and then gives an error that says:
Internal error: No write permission on directory...
But it launches when I run it using sudo
. I don't want to run it as root.
I give a recursive write permission to .matlab directory with sudo chmod -R 776 /home/uname/.matlab
command. Then I tried launch matlab from terminal using command matlab
. It terminated with massage :MATLAB is exiting because of fatal error
.
~/.matlab
)? The problem is almost certainly because you have run it usingsudo
- see Why should users never use normal sudo to start graphical applications?. – steeldriver Feb 12 '17 at 19:48sudo -H matlab
. But I could not notice any difference. – Sarath Feb 13 '17 at 12:00sudo -H
now won't help: you need to check the ownership and permissions on the directory mentioned in the error message (which you forgot to include): it likely wouldn't hurt to runsudo chown -R $USER:$USER ~/.matlab
– steeldriver Feb 13 '17 at 14:09sudo chown -R $USER:$USER ~/.matlab
. But it gives an error:chown: missing operand after ‘$USER:$USER/.matlab’
. – Sarath Feb 13 '17 at 14:53$USER:$USER
and the~/.matlab
- also make sure you include the~
, if in doubt (or you can't find it on your keyboard) then usesudo chown -R $USER:$USER $HOME/.matlab
– steeldriver Feb 13 '17 at 14:57