MATLAB Answers

Matlab R2020a can only run as root (Ubuntu 18.04)

68 ビュー (過去 30 日間)
Jianfeng Cui
Jianfeng Cui 2020 年 8 月 9 日
回答済み: Chidvi Modala 2020 年 8 月 12 日
I just installed Matlab 2020a on Ubuntu 18.04 with my student license. I activated it with my username which is the result of command whoami. But I still encountered a license error when running sudo matlab like:
MATLAB is selecting SOFTWARE OPENGL rendering.
License checkout failed.
License Manager Error -9
This error may occur when:
-The hostid of this computer does not match the hostid in the license file.
-A Designated Computer installation is in use by another user.
If no other user is currently running this program, you may need to activate.
And if I run matlab without sudo, the splash screen will show but soon get stuck. Then I try running matlab as root and it can run normally. Why this happens? And how can I run it as a normal user?

Community Treasure Hunt

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

Start Hunting!

Translated by