Matlab Runtime Install Noninteractively Error: invalid option -- 'a'

4 次查看(过去 30 天)
Hello,
I am new at Matlab and wants to install Matlab Runtime to remote server which has no GUI support. I would like run MATLAB script which calls Simulink model and the Simulink model communciates with a python script via TCP. I wondered whether it is feasible.
However, I am getting " invalid option -- 'a'" error. What is the problem.
Thanks!!

回答(1 个)

Varun
Varun 2023-12-29
Hi Bedirhan,
Looks like you are trying to run the MATLAB runtime installer in silent mode. However, you are facing the following error:
invalid option -- 'a'
Please try below workarounds:
1) In your command, use "./install" instead of just "install" because using "install" without the preceding "./" in a Linux environment will typically invoke a completely different command than the MATLAB Runtime installer script named "install". The "install" command in Linux is a standard utility that is used to copy files and set attributes during the installation of software
sudo ./install -agreeToLicense yes
2) Ensure that you are in the correct directory where the MATLAB Runtime installer has been extracted. Use the pwd command to print the current working directory and ls to list the files.
pwd
ls -l
3) Make sure that the installer file named install is indeed present in the current directory and that it is executable. If it's not executable, you can make it so with the following command:
chmod +x install
Hope it helps.

类别

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

产品


版本

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by