I just purchased the student version of Matlab and installed & activated following the instructions from Matlab. However, I cannot run it either with sudo or without.
With sudo, there is the license error saying the user name is different, I figure out that it becomes 'root' so is different from the username of the license. Without sudo, I got stuck at the splashscreen and can never go to the Matlab window. I have to enter ctrl-Z to stop it running from the terminal.
I tried to install in both the home directory and the default /usr/local directory trying to avoid the issue with administrative privilege, but the result is the same (stuck at the splashscreen). I also tried the matlab-support package, still no luck.
Thanks in advance for replying.

 Akzeptierte Antwort

bdcxns
bdcxns am 6 Mai 2018
Bearbeitet: madhan ravi am 29 Nov. 2018

0 Stimmen

I found the answer here:
After adding the write permission by chmod a+w -R ~/.matlab, Matlab can start normally, without superuser privilege.

4 Kommentare

Gaston Melo
Gaston Melo am 14 Sep. 2018
Hi, im using linux mint 19 and I install matlab with sudo ./install on terminal. When I tried to start matlab with ./matlab it freeze with matlab logo. I tried with sudo ./matlab with the same freeze. I changed the owner of the matlab folder with the user name but have the same result. If I tried to run matlab with root user I get the licence error. What is the problem? IF i run matlab --nojvm it start matlab without problems. Thanks
bdcxns
bdcxns am 29 Nov. 2018
Don't use sudo to install, or run, if Matlab asks for consistency between username and license.
Have you tried adding the write permission on Matlab preference folder?
Walter Roberson
Walter Roberson am 29 Nov. 2018
You probably do need sudo to install.
bdcxns
bdcxns am 29 Nov. 2018
if this is necessary then install in home directory and run without sudo as the student license only allow one user
I managed to solve this issue in this way

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Gefragt:

am 6 Mai 2018

Bearbeitet:

am 29 Nov. 2018

Community Treasure Hunt

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

Start Hunting!

Translated by