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.