How do I activate my Matlab license on Linux? 'Licensing error: -9,57.'

32 views (last 30 days)
Hello,
Matlab does not open an interface on my linux desktop.
If I run from command line I get the following error:
'Licensing error: -9,57.'
The documentation says to press the activate button in the GUI, however without a GUI that action is moot.
I have deactivated my license from MS Windows and wish to use it on the linux desktop instead.
QUESTION: How do I activate my Matlab desktop license on Linux if the GUI does not open?
Thanks for your help with this.
  1 Comment
Peter Willis
Peter Willis on 13 Feb 2025
If I run the following as my user:
/usr/local/MATLAB/<version>/bin/glnx/MathWorksProductAuthorizer.sh
The authorizer script says it is activated.
Same error whan I try to run matlab though.
Am I running matlab the correct way?
Just calling
/usr/local/MATLAB/<version>/bin/matlab
on the commandline,

Sign in to comment.

Accepted Answer

Peter Willis
Peter Willis on 13 Feb 2025
This is resolved:
In this computer the username is a domain user with a special character in it.
<user>@<domain>
eg. bigbob@ouroffice
To resolve the issue:
1.) We went online to the mathworks user account and generated a new license file with the correct host-id, username, and mathworks account. This downloads a new 'license.lic' file and then is downloaded by the web browser.
2.) The license.lic was placed in <matlab_install_path>/licenses/ . Normally the Matlab install path is /usr/local/MATLAB/<matlab-version> . Delete any other license files in that directory.
3.) Make sure there are no user local license files. If so , delete them.
cd ~/.matlab/R2024b_licenses/
rm *
4.) Run matlab
  1 Comment
Peter Willis
Peter Willis on 16 Feb 2025
It should be noted that an hour of time was provided by the Mathworks help line staff while we worked through this issue.
Copious thanks to their tech support are in order for patience and persistence.
Thank you!

Sign in to comment.

More Answers (0)

Categories

Find more on Install Products in Help Center and File Exchange

Products


Release

R2024b

Community Treasure Hunt

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

Start Hunting!