How to install Matlab runtime 2024b on mac noninteractively

조회 수: 31 (최근 30일)
Hao
Hao 2025년 1월 24일
답변: Hao 2025년 1월 27일
I am trying to install the Matlab runtime 2024b intel version on a Mac. I can install it without a problem using GUI installer interactively on my Mac with Apple silicon. However, I can not install it non-interactively using the command line. I want to try a non-interactive install because I will need to install the Matlab runtime 2024b on server Mac machines, where I don't have GUI control.
I can do the noninteractively install before with runtime 2020 using the following command after unzipping the installation file.
./install -mode silent -agreeToLicense yes
Now with Matlab runtime 2024, the file I got is a .dmg.zip instead of .zip, and I got a .dmg file after unzipping. Then I use
hdiutil attach MATLAB_Runtime_R2024b_Update_3_maci64.dmg -nobrowse -quiet
to mount.
Then I tried the following to install but got the error
/Volumes/MATLAB_Runtime_R2024b_Update_3_maci64/InstallForMacOSIntelProcessor.app/Contents/MacOS/InstallForMacOSIntelProcessor -agreeToLicense yes
Command-line key must start with a prefix "-": "yes"
find: /var/folders/2q/m4s3c0fj1cn_rck5j97fc6j40000gp/T/installer_21411: No such file or directory
find: /var/folders/2q/m4s3c0fj1cn_rck5j97fc6j40000gp/T/installer_21411/archives: No such file or directory
find: /var/folders/2q/m4s3c0fj1cn_rck5j97fc6j40000gp/T/installer_21411/archives: No such file or directory
I tried to add - to yes, and adding -- to agreeToLicense, but still not working.
I tried to remove -agreeToLicense yes option and run
/Volumes/MATLAB_Runtime_R2024b_Update_3_maci64/InstallForMacOSIntelProcessor.app/Contents/MacOS/InstallForMacOSIntelProcessor
only, and it does trigger the GUI installer and successfully installed Matlab, but needs user interaction.
Any suggestion I can install the Matlab runtime 2024 without user interaction? Thanks!

답변 (2개)

Alan
Alan 2025년 1월 27일
Hi Hao,
From my understanding, you are trying to perform a non-interactive installation of MATLAB Runtime R2024b with a .DMG file.
I have tried this on my MAC and faced the same issues. It could be because silent installation using .DMG files is not supported on MAC machines as mentioned in the following article:
However, I am not sure all the methods would work for MATLAB Runtime as the article is meant for MATLAB. If none of the article's methods work, you could contact MathWorks support: https://www.mathworks.com/support/contact_us.html
Regards,
Alan

Hao
Hao 2025년 1월 27일
I found an alternative solution. The folloing steps works for me.
on local machine:
Install the Matlab runtime 2024b interactively as normal.
cd /Applications/MATLAB/MATLAB_Runtime
tar -czvf R2024b.tar.gz R2024b
Copy R2024b.tar.gz onto your remote machine, and run the following on remote
tar -xzvf /path/to/R2024b.tar.gz -C /Applications/MATLAB/MATLAB_Runtime/
Then I am able to run Matlab runtime on my remote machine.

카테고리

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