我的输入文件是
mode=silent
agreeToLicense=yes
destinationFolder=/opt/mcr
fileInstallationKey=xxxxx-xxxxx-xxxxx-xxxxx
lmgrFiles=false
lmgrService=false
licensePath=/path/to/license
product.MATLAB
我像这样运行命令
$ ./install -inputFile my_input.txt
出现此错误
(Jun 23, 2015 06:23:19) Starting local product/component search in download directory
(Jun 23, 2015 06:23:19) Searching for archives...
(Jun 23, 2015 06:23:19) Reading /root/Downloads/MathWorks/R2015a/archives
(Jun 23, 2015 06:23:19) 12 files found in /root/Downloads/MathWorks/R2015a/archives
(Jun 23, 2015 06:23:19) Reading /root/Downloads/MathWorks/R2015a
(Jun 23, 2015 06:23:19) 16 files found in /root/Downloads/MathWorks/R2015a
(Jun 23, 2015 06:23:19) Reading /root/Downloads/MathWorks/R2015a/archives
(Jun 23, 2015 06:23:19) 12 files found in /root/Downloads/MathWorks/R2015a/archives
(Jun 23, 2015 06:23:19) Archive search complete. 40 total files found.
(Jun 23, 2015 06:23:19) Assembling product list...
(Jun 23, 2015 06:23:20) Completed local product/component search
(Jun 23, 2015 06:23:20) Error: Unable to locate required installation files.
Using a File Installation Key requires you run the installer from a MATLAB DVD or from a directory which contains files previously downloaded via the installer.
To obtain the missing files, click Back on the previous screen and select Log in with a MathWorks Account or contact your MATLAB license administrator.
(Jun 23, 2015 06:23:20) Exiting with status -2
(Jun 23, 2015 06:23:21) End - Unsuccessful.
我尝试搜索但不知道如何捕获此错误。任何人都可以帮助我吗?
答案 0 :(得分:0)
您可以使用这一行命令安装。
sudo apt-get install matlab-gdf dynare-matlab libpdl-io-matlab-perl matlab-support matlab-support-dev matlab2tikz