Changing the license server reference method (Linux)¶
Start a terminal (
bash
is used in this example).Add the following content to
~/.bashrc
. If~/.bashrc
does 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\licenses
that was temporarily used during installation.$MATLAB
means the MATLAB installation folder.Start MATLAB by typing
matlab
in the terminal and confirm that no license authentication error is displayed.