How can I tell the activation script where to write the licence file?

8 次查看(过去 30 天)
On a linux system, I'm trying to activate an installation with an active internet connection. After authentication and choosing my license the activation script tries to write the licence file in the matlab root folder where I don't have and never will have permissions to write. Sudo is not an option either.
How can I tell the script to write the file into my home folder?

回答(2 个)

Atharva
Atharva 2023-9-4
Hey Christian,
To tell the MATLAB activation script to write the license file into your home folder instead of the MATLAB root folder, you can use the cd (change directory) command in the terminal to navigate to your home directory before running the activation script.
I hope this helps!

Jit
Jit 2025-6-10
Having this same problem.
Running the activation script from the app directory states it has no write permissions to the (root-owned) folder.
Running from home directory results in an unhelpful "Unable to install license file. Please try again later"
  1 个评论
Jit
Jit 2025-6-10
I ended up having to activate the license manually using hostid on mathworks website, then copying this over to
~/.matlab/R20xx_licenses/
This really should be a simple thing for the activation script to do itself.
i.e. first try installing into <app-location>/licenses, if that fails then put into the right location in user home folder.

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Install Products 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by