Failed Sage 9.0 build on Catalina

294 views
Skip to first unread message

Christian Bean

unread,
Jan 6, 2020, 5:04:33 AM1/6/20
to sage-support
I attempted to install Sage 9.0 on my Mac (macOS Catalina 10.15.2). Unfortunately, the build failed. I attached some log files of the failed build. I have installed brew and command line tools. 

ccache-3.3.4.loghttps://hastebin.com/agazivozeh.coffeescript

Rachel Player

unread,
Jan 13, 2020, 10:59:19 AM1/13/20
to sage-support
I am also having trouble installing Sage on macOS Catalina 10.15.2.

The issue appears to be with the internal version of python.

Here’s what I did:

  • - Downloaded sage-9.0-OSX_10.15.2-x86_64.tar.bz2
  • - Opened with tar -xzf sage-9.0-OSX_10.15.2-x86_64.tar.bz2
  • - Cd’d into SageMath
  • - Ran ./sage


It began patching many files, before crashing with:

SageMath/src/bin/sage-python: line 2: 47037 Killed: 9               sage -python "$@"


Running ./sage again, I get

 ./sage

dyld: Library not loaded: /SageMath/local/lib/libpython3.7m.dylib

  Referenced from: /SageMath/local/bin/python3

  Reason: no suitable image found.  Did find:

/SageMath/local/lib/libpython3.7m.dylib: code signature in (/SageMath/local/lib/libpython3.7m.dylib) not valid for use in process using Library Validation: library load disallowed by system policy

/SageMath/local/lib/libpython3.7m.dylib: stat() failed with errno=1

/SageMath/local/lib/libpython3.7m.dylib: code signature in (/SageMath/local/lib/libpython3.7m.dylib) not valid for use in process using Library Validation: library load disallowed by system policy

/SageMath/src/bin/sage-python: line 2: 48215 Abort trap: 6           sage -python "$@"


On running ./sage again, errors pop up with a dialogue box saying (e.g.):


"termios.cpython-37m-darwin.so cannot be opened because the developer cannot be verified.

macOS cannot verify that this app is free from malware.”


I tried to temporarily allow this “app" in system preferences but there are many such files and each time one tries to run ./sage a new error comes up. Other example files mentioned in these error messages include:

- fcntl.cpython-37m-darwin.so

resource.cpython-37m-darwin.so

etc.


Has anyone else experienced this issue?


Best,

Rachel

Dima Pasechnik

unread,
Jan 13, 2020, 11:15:19 AM1/13/20
to sage-support
the issue is with "improved" security settings on MacOS 10.15.
I don't have access to 10.15, so I can't give details...
> --
> 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...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/sage-support/010654ec-df63-4b1b-8dce-66b9433b8b86%40googlegroups.com.

kcrisman

unread,
Jan 13, 2020, 12:08:07 PM1/13/20
to sage-support


On Monday, January 13, 2020 at 11:15:19 AM UTC-5, Dima Pasechnik wrote:
the issue is with "improved" security settings on MacOS 10.15.
I don't have access to 10.15, so I can't give details...

So maybe it's not just the app version that is going to give problems, just prebuilt binaries in general?  It would really be terrible if we couldn't offer any binaries at all to "modern" OS X versions. 

Dima Pasechnik

unread,
Jan 13, 2020, 12:17:31 PM1/13/20
to sage-support
well, it probably depends quite a bit on the security settings of the account/machine. 

But a proper job would be to either get the signing stuff done, or leave the binary installation entirely to Conda/Homebrew etc.

It is ironic that we have cryptographers and infosec people as Sage users (and some of them are heavy Mac users too), but cannot get Sage stuff cryptographically signed on Macs.



--
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...@googlegroups.com.

slelievre

unread,
Jan 14, 2020, 8:01:10 PM1/14/20
to sage-support
Mon 2020-01-13 15:59:19 UTC, Rachel Player:
>
> I am also having trouble installing Sage on macOS Catalina 10.15.2.
>
> The issue appears to be with the internal version of python.
>
> Here’s what I did:
>
> - Downloaded sage-9.0-OSX_10.15.2-x86_64.tar.bz2
> - Opened with tar -xzf sage-9.0-OSX_10.15.2-x86_64.tar.bz2
> - Cd’d into SageMath
> - Ran ./sage

Suggestion (initial $ on any line denotes shell prompt):

- download sage-9.0-OSX_10.15.2-x86_64.tar.bz2

- extract with

    $ tar -xf sage-9.0-OSX_10.15.2-x86_64.tar.bz2

  which gives a SageMath folder

- recursively unquarantine that folder with

    $ xattr -rd com.apple.quarantine SageMath

- change to SageMath and run Sage with

    $ cd SageMath
    $ ./sage

- if that works, quit Sage and create a symlink
  to Sage somewhere in your path:

    sage: quit
    $ sudo ln -s `pwd`/sage /usr/local/bin

Then, in any terminal session, you can start Sage
from anywhere without having to cd to SageMath.

Start the Sage REPL:

    $ sage

Start the Jupyter notebook server:

    $ sage -n jupyter


Rachel Player

unread,
Jan 15, 2020, 5:52:56 AM1/15/20
to sage-s...@googlegroups.com
Hi there,


Suggestion (initial $ on any line denotes shell prompt):

- download sage-9.0-OSX_10.15.2-x86_64.tar.bz2

- extract with

    $ tar -xf sage-9.0-OSX_10.15.2-x86_64.tar.bz2

  which gives a SageMath folder

- recursively unquarantine that folder with

    $ xattr -rd com.apple.quarantine SageMath

- change to SageMath and run Sage with

    $ cd SageMath
    $ ./sage

Happy to report that this suggestion worked for me. Thank you!

Best,
Rachel

--
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...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages