Re: [sage-support] Re: Install of sage on macOS

2020-12-03 Thread G. M.-S.
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
*


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  wrote:

> On Thu, Dec 3, 2020 at 5:39 PM Mathieu Dutour 
> 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 
> >>
> >> 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
> >>> 

Re: [sage-support] Re: Install of sage on macOS

2020-12-03 Thread Dima Pasechnik
On Thu, Dec 3, 2020 at 5:39 PM Mathieu Dutour  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 
>>
>> 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/e6cb3fd4-f338-4fd6-bd48-f4d6ad7c7345n%40googlegroups.com.

-- 
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/CAAWYfq2Vc%2BR-Gy1QR4c%3D0VuqF_xeoppnV-WUuWP4LdVjaCNi7w%40mail.gmail.com.


Re: [sage-support] Re: Install of sage on macOS

2020-12-03 Thread slelievre
A ticket to track providing an app for macOS again:

- Provide macOS app again
  https://trac.sagemath.org/ticket/31000

-- 
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/c995b0fd-294b-4a38-9949-9d6487a9e022n%40googlegroups.com.


Re: [sage-support] Re: Install of sage on macOS

2020-12-03 Thread Dima Pasechnik
On Thu, Dec 3, 2020 at 5:39 PM Mathieu Dutour 
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"
>

on macOS 10.15.7 this appears to install the version 9.2 of  x86_64.app.dmg
by
pulling it from a Sage mirror.

Does Sage installed this way work?
(I'd be surprised it was the case)


> I think this should be mentioned on the "Sage Installation Guide"
> as this is a very convenient and standard procedure on Macintosh.
>
> 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 
>>
>> 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/e6cb3fd4-f338-4fd6-bd48-f4d6ad7c7345n%40googlegroups.com
> 
> .
>

-- 
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/CAAWYfq1%2BNbgV-UsM3jQ6p5Tmy984muVBSA%2BYVhuSL2Sb0gDVCQ%40mail.gmail.com.


[sage-support] Re: Install of sage on macOS

2020-12-03 Thread Mathieu Dutour
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"

I think this should be mentioned on the "Sage Installation Guide"
as this is a very convenient and standard procedure on Macintosh.

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 
>
> 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/e6cb3fd4-f338-4fd6-bd48-f4d6ad7c7345n%40googlegroups.com.


[sage-support] Re: Install of sage on macOS

2020-12-03 Thread john_perry_usm
Have you tried this?

   sudo xattr -r -d com.apple.quarantine 

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/8fa626b5-2b46-473d-81b3-abc0d63eef7en%40googlegroups.com.