Linux : Installing new toolboxes on an existing installation

72 views (last 30 days)
Hello,
I want to install toolboxes on an existing installation, for example on :
/usr/local/MATLAB/R2020b
as suggested by the matlab installer.
I tried to select the toolbox with the add-on button on matlab windows, connect to my account, and then I got a problem because I don't have the permission to write on /usr/local/MATLAB..
I tried to run matlab with a command line as sudo like :
sudo /usr/local/MATLAB/R2020b/bin/matlab -c /usr/local/MATLAB/R2020b/licenses/license.lic
And I got a licence checkout failed:
License checkout failed.
License Manager Error -9
Your username does not match the username in the license file.
I haven't the intaller script anymore, or don't know where it is located on matlab installation folder (/usr/local/MATLAB/R....)
Does anyone knows how to solve this ?
Thanks in advance,
Bruno

Accepted Answer

Rik
Rik on 14 Jan 2021
Edited: Rik on 29 Jan 2021
You should be able to use the AddOn manager to install additional toolboxes.
Edit:
With default settings, Matlab is installed as root in /usr/local/MATLAB/, so unless you're running Matlab as root, you will not have write access. One way around this is to set the permission to the user:
sudo chown -R $USER /usr/local/MATLAB/
Now the user has write access and you can use the AddOn manager. After installing the toolboxes, revert the permission change with this:
sudo chown -R root /usr/local/MATLAB/
Obviously you need to change this path if you installed Matlab in a different location.
  2 Comments
Rik
Rik on 15 Jan 2021
I think the best solution would be to attempt to fix the licence error. As you may have guessed, my Linux prowess is a bit limited, so I don't know specific causes without Google. The specific error might help. I know Walter Roberson has compiled a list of licence errors and a pausible cause+solution.
You might also try to set the rights to a normal user. I can imagine that might have unintended consequences though.
Gonzalo Villegas Curulla
Gonzalo Villegas Curulla on 22 Sep 2023
Unfortunately, there is no "solving of that error". The installation was made for a user ID, if that ID does not match the one that the license is trying to check out, you will keep getting that error.
The solution proposed above is neat!

Sign in to comment.

More Answers (0)

Categories

Find more on Introduction to Installation and Licensing 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!