Matlab Runtime Install Noninteractively Error: invalid option -- 'a'
6 次查看(过去 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.
So i follow instructions at: https://www.mathworks.com/help/compiler_sdk/dotnet/install-the-matlab-runtime.html
However, I am getting " invalid option -- 'a'" error. What is the problem.
Thanks!!
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/881085/image.png)
0 个评论
回答(1 个)
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.
0 个评论
另请参阅
类别
在 Help Center 和 File 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!