Why am I unable to install MATLAB using Download Only offline files on Mac?

조회 수: 10 (최근 30일)
Why am I unable to run the installer in Download Only offline files on Mac?

채택된 답변

MathWorks Support Team
MathWorks Support Team 2021년 7월 29일
There are a couple known issues that could occur with the installer obtained through the Download Only workflow:
  • MacOS Gatekeeper
  • Installation files are located in a 'Protected' location 

MacOS Gatekeeper

In the first scenario, the Download Only workflow is performed on a machine with internet access, the files are compressed and moved to the target machine to be installed. 
The security feature Gatekeeper on Mac will add a quarantine attribute to any files downloaded from the internet to flag that it be checked and blocked if needed. If you upload a compressed/zipped copy of the MATLAB Download Only files to a file share website(such as SFT), when you download the files it will have this quarantine flag. This flag will stop the InstallForMacOSX inside of the Download Only files from being run once it is unzipped.
To confirm that the downloaded zip file has this attribute, run the following command in a Terminal window:
xattr <path to zip file>
This command will list out all of the attributes on the zipped file. If it has been quarantined, you will see the following:
com.apple.quarantine
You can remove this by running the following command in a Terminal window:
sudo xattr -r -d com.apple.quarantine <path to zip file>
The -r option allows the quarantine attribute of all files inside of the zip to be changed and the -d removes the given attribute value. Once the above command has been run, you can unzip the Download Only files and then run the installer like you would normally with the offline installation workflow.
You may need to move the Download Only files out of the /Downloads directory in order to be able to run the installer after removing the quarantine flag. A location such as /Users/Shared will typically be more permissive.

Installation files are located in a 'Protected' location 

In the second scenario, the installer is trying run from a 'protected' location such as ~/Desktop, or ~/Downloads. In most cases, moving the installer to an 'unprotected' location such as /Users/Shared will allow the installer to run.

추가 답변 (0개)

카테고리

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