installer_input.txt doesn't activate Mathworks even though license.dat file is specified

6 次查看(过去 30 天)
Hi Everyone
I'm trying to create a noninteractive installation of Matlab R2021b which I'm able to get it installed succesfully, but one part that annoys me is that it does not activate the Mathworks itself, as when I newly install the Matlab, the Mathworks Activation GUI appears and I ahve to manually provide it my license.dat file...
This is rather painful as the installer_input.txt provides an otion to specify your license.dat file with the variable "licensePath"
Can someone please assist me with getting the MATLAB R2021b to rely on its "installer_input.txt" variable "licensePath=" to automatically activate its software?
This is set up on a Ubuntu 20.04 environment
  1 个评论
Phong Chau
Phong Chau 2022-1-19
In my installer_input.txt I have the license.dat file located and pointed to here:
licensePath=/tmp/license.dat
When I launch Matlab it should've been activated automatically, but instead I get prompted to activate it:

请先登录,再进行评论。

回答(1 个)

Riya
Riya 2023-11-16
Hello Phong Chau,
As per my understanding you are experiencing an issue with the noninteractive installation of MATLAB R2021b on Ubuntu 20.04, where the software is not automatically activated even though you have specified the license.dat file in the installer_input.txt file.
Please note that here are a few steps you can try to resolve this issue:
1. Make sure the license.dat file is valid: Double-check that the license.dat file you are specifying in the installer_input.txt file is valid and contains the correct licensing information. You can verify this by opening the license.dat file and ensuring that it is not empty or corrupted.
2. Check the installer_input.txt file: Verify that the installer_input.txt file is correctly formatted and that the licensePath variable is set to the correct path of the license.dat file. Ensure that there are no typos or errors in the path specified.
3. Run the installation as root: Try running the installation with root privileges using the sudo command. This can help ensure that the installation has the necessary permissions to access and activate the license file.
sudo ./install -inputFile installer_input.txt
4. Check installation logs: After the installation, check the installation logs to see if there are any error messages or warnings related to the license activation process. The installation logs are typically located in the /tmp directory and have names like install_log.xxxx, where xxxx is a random number.
5. Contact MathWorks support: If the issue persists, it is recommended to contact MathWorks support for further assistance. They can provide you with specific guidance and troubleshooting steps tailored to your situation.
By following these steps, you should be able to resolve the issue and have MATLAB R2021b automatically activate using the license.dat file specified in the installer_input.txt file.
I hope it helps.

类别

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

产品


版本

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by