Hi Dima. As you said, "brew install sage" does nothing more than downloading a sage-*.app.dmg and copying it to /Applications, at least on an older OS.
Details follow for macOS High Sierra (10.13.6). Yes, I know it is an "obsolete" version. $ brew info sage sage: 9.1,10.11.6 https://www.sagemath.org/ Not installed From: https://github.com/Homebrew/homebrew-cask/blob/HEAD/Casks/sage.rb ==> *Name* Sage ==> *Description* None ==> *Artifacts* SageMath-9.1.app (App) /Applications/SageMath-9.1.app/Contents/Resources/sage/sage (Binary) ==> *Analytics* install: 261 (30 days), 529 (90 days), 1,740 (365 days) $ One can see in the file https://github.com/Homebrew/homebrew-cask/blob/HEAD/Casks/sage.rb that it downloads https://mirrors.mit.edu/sage/osx/intel/sage-9.1-OSX_10.11.6-x86_64.app.dmg or https://mirrors.mit.edu/sage/osx/intel/sage-9.2-OSX_10.15.7-x86_64.app.dmg (which will not work for recent OS). I tried to install it: $ brew install sage […] ==> *Downloading https://mirrors.mit.edu/sage/osx/intel/sage-9.1-OSX_10.11.6-x86_64.app.dmg <https://mirrors.mit.edu/sage/osx/intel/sage-9.1-OSX_10.11.6-x86_64.app.dmg>* ######################################################################## 100.0% ==> *Installing Cask **sage* ==> *Creating Caskroom at /usr/local/Caskroom* ==> *We'll set permissions properly so we won't need sudo in the future.* Password: ==> *Moving App 'SageMath-9.1.app' to '/Applications/SageMath-9.1.app'.* ==> *Linking Binary 'sage' to '/usr/local/bin/sage'.* 🍺 sage was successfully installed! $ But it is quarantined: $ ls -al@ /Applications/SageMath-9.1.app total 0 drwxr-xr-x@ 4 128 May 23 2020 . com.apple.quarantine 67 drwxr-xr-x@ 6 192 May 23 2020 Contents com.apple.quarantine 67 lrwxr-xr-x@ 1 28 Dec 4 01:39 sage -> Contents/Resources/sage/sage com.apple.quarantine 67 $ and you get the classical *“SageMath-9.1.app” can’t be opened because the identity of the developer cannot be confirmed.* Opening it anyway, it is exactly the same as downloading the .app.dmg yourself (which I had already done). I do not know if Homebrew does something more on a more recent OS. Guillermo P.S. After some trial and error, I have managed to install sage-9.2-OSX_10.15.7-x86_64.app.dmg on macOS 10.13.6, but I would be unable to say what made it work. On Fri, 4 Dec 2020 at 01:08, Dima Pasechnik <dimp...@gmail.com> wrote: > On Thu, Dec 3, 2020 at 5:39 PM Mathieu Dutour <mathieu.dut...@gmail.com> > wrote: > > > > Thank you for providing this. Keep that in mind for future. > > > > As it turns out, the solution to installing was incredibly simple: > > "brew install sage" > > dima@oucl13243 sage % brew install sage > ==> Searching for similarly named formulae... > This similarly named formula was found: > imessage-ruby > To install it, run: > brew install imessage-ruby > Error: No available formula or cask with the name "sage". > ==> Searching for a previously deleted formula (in the last month)... > Error: No previously deleted formula found. > ==> Searching taps on GitHub... > Error: No formulae found in taps. > > dima@oucl13243 sage % brew install --cask sage > Error: Cask 'sage' is unavailable: No Cask with this name exists. > > > I think this should be mentioned on the "Sage Installation Guide" > > as this is a very convenient and standard procedure on Macintosh. > > > doesn't even install for me, see above. > > > Your mention of "sudo xattr ..." should be mentioned as well > > I think. > > > > Mathieu > > On Thursday, 3 December 2020 at 18:10:12 UTC+1 john_perry_usm wrote: > >> > >> Have you tried this? > >> > >> sudo xattr -r -d com.apple.quarantine <path/to/Sage> > >> > >> It removes the "quarantine" signal on files. I used it to get Sage > running on Catalina. I've had to use this with some other things, too. I > learned of it through one of the StackOverflow sites, and it may also be in > Sage's documentation somewhere. > >> > >> john perry > >> > >> On Wednesday, December 2, 2020 at 12:54:29 PM UTC-6 Mathieu Dutour > wrote: > >>> > >>> I would like to install SAGE on a macOS MacBook Pro16 computer. > >>> > >>> The problem I have is that Sage is killed when trying to install it > >>> by the system. The reasons is laudable: Do not run untrusted binaries > >>> on a macintosh. > >>> > >>> But in that case, it makes installation kind of impossible. The reason > >>> is that the first binary to be allowed on "Security & Privacy" is > Python3.8 > >>> If the story stopped here, then that would be perfectly fine. However, > after > >>> I allow the Python3.8 I have further libraries to allow and it does > not appear > >>> to converge as I keep allowing the same libraries over and over. > >>> > >>> I tried two ways of installing: > >>> 1) Downloading the .tar.bz2 and installing it in my $HOME/opt directory > >>> just as I do on Linux. > >>> 2) Downloading the .dmg archive and installing sage in /Application > directory. > >>> I would have expected that it worked since /Application is a root > directory > >>> and not user one. Also the .dmg is a package format so should allow > >>> simple authorization scheme. > >>> > >>> I followed the "Sage Installation Guide. Release 9.2" and unfortunately > >>> that problem does not appear to be addressed there. > >>> > >>> Mathieu > -- You received this message because you are subscribed to the Google Groups "sage-support" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-support+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/sage-support/CANnG18-cV5phR0wpLfCshvU1d6qr83aOEJb7O_aUvpX51b_mMg%40mail.gmail.com.