Error trying to launch Matlab on Ubuntu using terminal

1 view (last 30 days)
Hello, I am able to launch Matlab using ./matlab in bin folder. But I want to be able to create an icon or launch it using terminal.
I am trying these command and I get error:
sudo /usr/local/MATLAB/bin/matlab -desktop
sudo /usr/local/MATLAB/bin/matlab matlab
the error is :
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:
http://www.mathworks.com/support/lme/R2017a/9
Diagnostic Information:
Feature: MATLAB
License path: /home/kashan/.matlab/R2017a_licenses/license_kashan_1072714_R2017a.lic:/usr/local/MATLAB/licenses/li
cense.dat:/usr/local/MATLAB/licenses/license_kashan_1072714_R2017a.lic
Licensing error: -9,57.
Could anyone help me please.

Answers (1)

Faiz Gouri
Faiz Gouri on 3 Apr 2017
This article will help you get rid of this error and launch your MATLAB successfully-
  1 Comment
Walter Roberson
Walter Roberson on 3 Apr 2017
In particular when you sudo, you are running as root, but you probably have an individual user license that is licensed against your user name, not against root.

Sign in to comment.

Categories

Find more on Install Products in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!