Ask Your Question

Revision history [back]

In macOS 10.15 Catalina, Apple pushes the security concerns and prevents apps from running unless they are "notarized", which means the developers need to register with Apple and get some certificate for the app.

Up to macOS 10.14 Mojave one could decide to run an app anyway, but in macOS 10.15 Catalina the option to do that is deactivated.

One can either restore that option by running the following command in a terminal (the initial $ on any line denotes the shell prompt, don't type that dollar sign):

$ sudo spctl --master-disable

Once that is done one recovers the option to bypass the quarantine by visiting "System Preferences" and going to the "Security" tab there, etc.

Or one can unquarantine a given application by running a command in the terminal instead of visiting the System Preferences. Say you already did the following:

  • download sage-9.0-OSX_10.15.2-x86_64.app.dmg

  • open the dmg and copy the app where you want it, for example in /Applications.

Then, to recursively unquarantine the app folder, do the following (change THING as needed if it's a different version of Sage or you changed its name or you put it in another location):

$ THING="/Applications/SageMath-9.0.app"
$ xattr -rd com.apple.quarantine $THING

I also recommend to create a symlink to the Sage executable somewhere in your path:

$ THING="/Applications/SageMath-9.0.app"
$ cd $THING/Contents/Resources/sage
$ sudo ln -s `pwd`/sage /usr/local/bin

Then you can start Sage in any terminal session, whatever directory you are working in.

To start the Sage REPL:

$ sage

To start the Jupyter notebook server:

$ sage -n jupyter

Note: in addition to lifting the "quarantine" on the app, some people have suggested one may need to give the app "full disk access" (by going to "System Preferences > Security > Privacy), see: