Linux : Installing new toolboxes on an existing installation

조회 수: 72 (최근 30일)
Bruno jeanneret
Bruno jeanneret 2021년 1월 14일
댓글: Gonzalo Villegas Curulla 2023년 9월 22일
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

채택된 답변

Rik
Rik 2021년 1월 14일
편집: Rik 2021년 1월 29일
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
Rik
Rik 2021년 1월 15일
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 2023년 9월 22일
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!

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Introduction to Installation and Licensing에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by