Why do I get this error when trying to run matlab from ubuntu

I get this error when I try to run matlab in ubuntu. I used "sudo ./matlab" and I get this error
"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 MATLAB, you may need to activate.
Troubleshoot this issue by visiting: https://www.mathworks.com/support/lme/R2018a/9
Diagnostic Information: Feature: MATLAB License path: /home/n1700533d/.matlab/R2018a_licenses/license_Ubuntu19_40620921_R2018a.lic:/home/n1700533d/Matlab2 018/licenses/license.dat:/home/n1700533d/Matlab2018/licenses/license_Ubuntu19_40620921_R2018a.lic Licensing error: -9,57. "
please help. Thank you.

Answers (1)

When you sudo like that you are running MATLAB as user root which will only work if you had activated against user root.
If your purpose in the sudo is to grant access to resources such as writing files or allocating a serial port, then you should find a different approach such as using ACL http://manpages.ubuntu.com/manpages/bionic/man5/acl.5.html

1 Comment

Can you plese explain the same, I am getting an error due to permission denied while running a simulnik code with ROS.

Sign in to comment.

Categories

Products

Release

R2018a

Commented:

on 18 Nov 2021

Community Treasure Hunt

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

Start Hunting!