Matlab silent install from ISO specific toolbox only

5 次查看(过去 30 天)
Hello,
I'm trying to install MATLAB on a headless server with the silent install options as described here: https://uk.mathworks.com/help/install/ug/install-noninteractively-silent-installation.html
It works but it always installs all the toolboxes in the ISO but I only want the base Matlab without any toolboxes. The installer_input.txt file suggests that at the end entries such as product.MATLAB is used to specify which toolbox can be installed but the installer seems to ignore this.
My log file is:
(Mar 23, 2021 08:51:23) ##################################################################
(Mar 23, 2021 08:51:23) #
(Mar 23, 2021 08:51:23) # Today's Date:
(Mar 23, 2021 08:51:23) Tue Mar 23 08:51:22 UTC 2021
(Mar 23, 2021 08:51:23)
(Mar 23, 2021 08:51:23) System Info
(Mar 23, 2021 08:51:23) OS: Linux 4.15.0-88-generic
(Mar 23, 2021 08:51:23) Arch: amd64
(Mar 23, 2021 08:51:23) Data Model: 64
(Mar 23, 2021 08:51:23) Language: en
(Mar 23, 2021 08:51:23) Java Vendor: Oracle Corporation
(Mar 23, 2021 08:51:23) Java Home: /mnt/cdrom/sys/java/jre/glnxa64/jre
(Mar 23, 2021 08:51:23) Java Version: 1.8.0_202
(Mar 23, 2021 08:51:23) Java VM Name: Java HotSpot(TM) 64-Bit Server VM
(Mar 23, 2021 08:51:23) Release Description: R2020b
(Mar 23, 2021 08:51:23) Java Class Path: /mnt/cdrom/java/jarext/connector_impl/cosg_impl_java/cosg_impl.jar:/mnt/cdrom/java/config/matlab_installer/pathlist.jar
(Mar 23, 2021 08:51:23) User Name: root
(Mar 23, 2021 08:51:23) Current Directory: /mnt/cdrom
(Mar 23, 2021 08:51:23) Installer build number: 9.9.0.1467703
(Mar 23, 2021 08:51:23) Input arguments:
(Mar 23, 2021 08:51:23) inputfile: /tmp/installer_input.txt
(Mar 23, 2021 08:51:23) mode: silent
(Mar 23, 2021 08:51:23) licensepath: /tmp/network.lic
(Mar 23, 2021 08:51:23) fileinstallationkey: xxxx
(Mar 23, 2021 08:51:23) root: /mnt/cdrom
(Mar 23, 2021 08:51:23) product.matlab:
(Mar 23, 2021 08:51:23) outputfile: /tmp/mathworks.log
(Mar 23, 2021 08:51:23) agreetolicense: yes
(Mar 23, 2021 08:51:23) flow: fikworkflow
(Mar 23, 2021 08:51:23) Input file:
fileInstallationKey=xxxx
agreeToLicense=yes
outputFile=/tmp/mathworks.log
licensePath=/tmp/network.lic
product.MATLAB
(Mar 23, 2021 08:51:23) Reading from /mnt/cdrom/archives
(Mar 23, 2021 08:51:23) Starting local product/component search in download directory
(Mar 23, 2021 08:51:23) Searching for archives...
(Mar 23, 2021 08:51:23) Reading /mnt/cdrom/archives
(Mar 23, 2021 08:51:23) Extracting /mnt/cdrom/archives/platform_glnxa64.zip
(Mar 23, 2021 08:51:23) Extracting /mnt/cdrom/archives/platform_common.zip
(Mar 23, 2021 08:51:23) Archive search complete. 2 total files found.
(Mar 23, 2021 08:51:26) Finished reading from/mnt/cdrom/archives
(Mar 23, 2021 08:51:26) Completed local product/component search
(Mar 23, 2021 08:51:26) License file path /tmp/network.lic
(Mar 23, 2021 08:51:26) Warning: Insufficient disk space.Location: /usr/local/MATLAB/R2020b Required Space: 24.52 GB Increase space, select fewer products, or choose different destination.
at com.mathworks.install_core_common.MATLABInstallerExceptionUtil.getWarningException(MATLABInstallerExceptionUtil.java:24)
at com.mathworks.matlab_installer.operations.ProductOperations.showInsufficientSpaceWarning(Unknown Source)
at com.mathworks.matlab_installer.operations.ProductOperations.validateDownloadAndInstallFolderSpace(Unknown Source)
at com.mathworks.matlab_installer.services.ProductSelectionServices.calculateSize(Unknown Source)
at com.mathworks.installservicehandler.context.ExceptionInterceptor.invoke(ExceptionInterceptor.java:21)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at com.mathworks.installservicehandler.JsonPassThroughResponseWrapper.getData(JsonPassThroughResponseWrapper.java:24)
at com.mathworks.installservicehandler.JsonPassThroughResponseWrapper.getData(JsonPassThroughResponseWrapper.java:10)
at com.mathworks.installservicehandler.InstallServiceHandlerClient.executeService(InstallServiceHandlerClient.java:18)
at com.mathworks.matlab_installer.MatlabInstallerClient$8.executeService(Unknown Source)
at com.mathworks.installjscommon.InstallerClientUtility.executeGetNextStateInSequence(Unknown Source)
at com.mathworks.matlab_installer.MatlabInstallerClient.clientMain(Unknown Source)
Caused by: java.lang.Exception: Product Selection Error: Might not have enough space in the specified location
... 15 more
(Mar 23, 2021 08:51:26) Confirm selections
(Mar 23, 2021 08:51:26) Destination
(Mar 23, 2021 08:51:26) /usr/local/MATLAB/R2020b/
(Mar 23, 2021 08:51:26) Products
(Mar 23, 2021 08:51:26) 96 of 95 products
(Mar 23, 2021 08:51:26) 24.52 GB required
(Mar 23, 2021 08:51:26)
(Mar 23, 2021 08:51:27) Download thread pool size = 4
(Mar 23, 2021 08:51:36) Installing Product: Network License Manager
(Mar 23, 2021 08:51:37) Installing Product: MATLAB
(Mar 23, 2021 08:53:18) Installing Product: Simulink
(I've truncated the output)
Could you tell me how to only install specific toolboxes non-interactively, please?

采纳的回答

Duc Le
Duc Le 2021-3-29
So the issue is a bug that's fixed in R2021a, where if destinationFolder is not set, all products available will be installed.
The fix is to explicitly set this key, e.g.
destinationFolder=/usr/local/MATLAB/R2020b
fileInstallationKey=xxxx
agreeToLicense=yes
outputFile=/tmp/mathworks.log
licensePath=/tmp/network.lic
product.MATLAB

更多回答(1 个)

Rashed Mohammed
Rashed Mohammed 2021-3-26
Hi Duc Le,
Please refer to the answer and links present here.
If you are facing any issues, please contact us through the support page
  3 个评论
Rashed Mohammed
Rashed Mohammed 2021-3-26
Have you uncommented the line product.MATLAB in the installer_input.txt properties file?
Duc Le
Duc Le 2021-3-26
Yes. The cut down input file is:
fileInstallationKey=xxxx
agreeToLicense=yes
outputFile=/tmp/mathworks.log
licensePath=/tmp/network.lic
product.MATLAB
Same result if I use the template and just uncommented the required lines.
PS. I've also raised a service request.

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Introduction to Installation and Licensing 的更多信息

产品

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by