Subject:
How can I install and activate MATLAB on a Unix/Linux machine without using the X Window System (X Server)?
Problem Description:
The installer seems to require an X Server, but does have an option to install without an X Server. It is possible to install and activate MATLAB without an X Server?
Solution:
1 2 3 | # vi my_input_file.txt |
1 2 3 4 5 6 7 8 9 | mode=silent agreeToLicense=yes fileInstallationKey=XXXXX-XXXXX-XXXXX-XXXXX-XXXXX outputFile=/tmp/mathworks_.log mode=silent activationPropertiesFile=/root/Matlab2012b/activate.ini licensePath=/root/Matlab2012a/licenses/license.lic |
1 2 3 | ./install -if my_input_file.txt |
OR
1 2 3 | ./install -mode silent -agreeToLicense yes -fileInstallationKey XXXXX-XXXXX-XXXXX-XXXXX-XXXXX -activationPropertiesFile /root/Matlab2012a/activate.ini -licensePath /root/Matlab2012a/licenses/license.lic |
Problem:If you are getting this error:
1 2 3 | terminate called after throwing an instance of 'std::runtime_error' |
Solution:
1 2 3 | export LC_ALL="en_US.utf8" |
How to activate Matlab 2012b:
If you have a standalone license file, you will need to manually place the license file. To do so:
- Navigate to the directory where you chose to install MATLAB.
- If the “licenses” subdirectory does not exist, create this directory
- Save your license file as “license.lic” in MATLAB’s licenses subdirectory.
Thats it, MATLAB will be installed and activated.