Changing the license server reference method (Linux)
Start a terminal (
bashis used in this example).Add the following content to
~/.bashrc. If~/.bashrcdoes not exist, please create a new one.
export MLM_LICENSE_FILE=27000@matlab1.license.cc.uec.ac.jp,27000@matlab2.license.cc.uec.ac.jp
Enter
source ~/.bashrc.Enter
env, 2. Confirm that the environment variable settings added in are output.Pass the path to the
bin/directory under the directory where MATLAB is installed (hereinafter referred to as$MATLAB) in~/.bash_profile. In this example, MATLAB 2018a is installed in/usr/local/MATLAB/R2018/.
PATH=$PATH:/usr/local/MATLAB/R2018/bin export PATH
Enter
source ~/.bashrc.Delete the license file
$MATLAB\licensesthat was temporarily used during installation.$MATLABmeans the MATLAB installation folder.Start MATLAB by typing
matlabin the terminal and confirm that no license authentication error is displayed.