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

3 visualizaciones (últimos 30 días)
Christian Neissner
Christian Neissner el 15 de Jun. de 2022
Comentada: Jit el 10 de Jun. de 2025
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?

Respuestas (2)

Atharva
Atharva el 4 de Sept. de 2023
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 el 10 de Jun. de 2025
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 comentario
Jit
Jit el 10 de Jun. de 2025
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.

Iniciar sesión para comentar.

Categorías

Más información sobre Install Products en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by