How to install Matlab runtime 2024b on mac noninteractively
조회 수: 31 (최근 30일)
이전 댓글 표시
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!
댓글 수: 0
답변 (2개)
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:
Hence, you can refer to alternative methods from the following article: https://www.mathworks.com/matlabcentral/answers/2148739-how-can-i-obtain-matlab-macos-offline-installation-files-for-matlab-releases-that-do-not-have-a-dmg
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
참고 항목
카테고리
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!