Does SageMath work on Mac OS 10.14.6

69 views
Skip to first unread message

seriously

unread,
Feb 25, 2020, 10:36:55 AM2/25/20
to sage-support
Seriously, has anyone got one of the current releases of Sage to work on any Mac platform?

I tried several times, lately with version 8.8 for 10.14.5.  I dropped the binary in Applications.
It can start up then - it opens a browser window which just stalls; it has a drop-down menu called "Terminal Session",
which doesn't do anything, and if I go directly into the App and execute ./sage, all kinds of errors appear
(many about permissions) and it crashes.

Unfortunately I want to run a program built on this platform, and really need a working version.  
Any ideas are much appreciated.

Nathan Dunfield

unread,
Feb 25, 2020, 12:18:19 PM2/25/20
to sage-support
I would try this version:

sage-8.9-OSX_10.14.6-x86_64.tar.bz2   (1058.94 MB)

as it worked fine for me on macOS 10.14.6 using the following commands in the terminal:

cd /Applications
mv ~/Downloads/sage-8.9-OSX_10.14.6-x86_64.tar.bz2 .
tar xf sage-8.9-OSX_10.14.6-x86_64.tar.bz2
cd SageMath
./sage
 
Best,

Nathan

Fernando Q. Gouvea

unread,
Feb 25, 2020, 12:52:47 PM2/25/20
to sage-s...@googlegroups.com

I managed to install sage-9.0-OSX_10.11.6-x86_64.app.dmg on a Mac running OSX 10.13. The app version seems to work better than the non-app version, and this one worked much better than the older 8.8 version I tried first.

The key is to be an administrator. That is needed at several points. First, when copying the app to the Applications folder. Then I had to start the program and the computer would tell me it wasn't from the Apple store so it couldn't be run. Once that happened, going into the security settings (and entering the admin password again) allowed me to say "run it anyway". Next time I started the program it spend a good long time "verifying" it. That may have required more administrator password. But eventually I got it to run and correctly open a notebook.

On a Windows machine, a non-administrator can install Sage "for yourself only", but Macs don't seem to allow that.

Fernando

--
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/93a7e77b-83fa-40f3-9687-15bd18c0cf32%40googlegroups.com.
-- 
==================================================================
Fernando Q. Gouvea                
Carter Professor of Mathematics  
Colby College                    
Mayflower Hill 5836        
Waterville, ME 04901	   
fqgo...@colby.edu	   http://www.colby.edu/~fqgouvea

What precisely is profound in Christianity is that Christ is both our
atoner and our judge, not that one is our atoner and another our
judge, for then we would nevertheless come to be judged, but that the
atoner and the judge are the same.
  -- Søren Kierkegaard, Journals

rana-aere

unread,
Feb 25, 2020, 12:58:11 PM2/25/20
to sage-support
Yes, I installed SageMath-9.0.app (from disk image file) on MacOS 10.14.6.
In Ask Sagemath, I explained how I managed it.
The subject is "SageMath-9.0 authentication error".
On the other hand, I feel your SageMath-9.0.app has slightly different problem.

I guess there are two similar issues in SageMath-9.0.app.

1. After copying SageMath-9.0.app from the disk image to, say, /Applications, one must run SageMath-9.0.app in the same user/administrator account. This is because SageMath-9.0.app or SageMath-9.0.app/sage configure files in the directory tree of SageMath-9.0.app. I feel your situation for running SageMath-9.0.app looks like this.
2. In MacOS 10.14.6, Apple is getting more sensitive about security and refuse to accept application with wrong signature. In my case, this was the problem. If you pass the previous hurdle, and double click SageMath-9.0,app, this might cause a problem. This issue is also important for you. (Running unix application SageMath-9.0.app/sage in MacOS 10.14.6 is all right. For me, the issue was about double clicking for invoking SageMath-9.0.) You can check this issue by the following command. I wrote the response on my machine.

```Console
        myhome$ codesign --verify /Applications/SageMath-9.0.app/
        /Applications/SageMath-9.0.app/: invalid Info.plist
        (plist or signature have been modified)
        In architecture: x86_64
```

3. If you pass previous two hurdles, another one might be a SageNB not supported any more.
    3.1 A good new is SageMath-9.0.app starts very quickly now and we do not need to wait for 2 minutes for its web interface to come up.
    3.2. Double clicking SageMath-9.0.app open jupyter notebook and loading-page.html. In case jupyter notebook, does not come up, you might double click the button `jupyter notebook`. Unfortunately, the button links to the wrong address `localhost:8080. Changing 8080 to 8888 might solve this problem.
    3.3 If one want to use old SageNB Notebook (or Sage Worksheet), the sad news is that Sagemath-9.0.app does not support it anymore. I checked the source and understood it refuses to open SageNB Notebook and I also saw messages on modules of sagenb notebook missing.
    3.4. If you execute "SageMath-9.0.app/sage --notebook", a different opening page will show up. Clicking the button for SageNB Notebook leads to a page, which is note maintained. The message "you can run sagenb ..." is wrong for SageMath-9.0.app.
4. If you are moving from SageNB Notebook, you might want to convert your documents.
    4.1. On my machine, the dialog offering upgrades does not work.
    4.2. On my machine, clicking the menu of upgrading SageNB Notebook on the web page from "SageMath-9.0.app/sage --notebook" does not work. I verified the log file and found error messages.
    4.3. Workaround for this is to use `SageMath-9.0.app/sage --notebook=export --list` for identifying the SageNB Notebook and the use ``SageMath-9.0.app/sage --notebook=export --ipynb=YourFilename.ipynb admin:NN`, where YourFileName.ipynb is the file for placing the result and NN is the number you find by the `--list` option. The result has markdown sections harder to edit, but the Sagemath code is all right.

I apologize this long long answer. But SageMath-9.0.app is that complicated.

If you manage to work these around, please tell me your result of `codesign` command. I feel the behavior of MacOS highly depends on versions/revisions. It looks like binaries working on some version/revision is not working on older and newer versions/revisions. If we identify how the behavior of MacOS changes, we can help the developers and through them million potential users of Sagemath.


2020年2月26日水曜日 0時36分55秒 UTC+9 seriously:

rana-aere

unread,
Feb 25, 2020, 1:09:00 PM2/25/20
to sage-support
Yes, giving permission to run SageMath-9.0.app is essential. But here is a problem. On MacOS 10.14, security control is made much strict. GUI interface for giving permission is now impossible for applications with wrong signature. (For application without signature, MacOS 10.14 behaves similarly to previous MacOS's. So, we can give permission to run SageMath-8.9.app is possible from GUI interface.)  

For SageMath-9.0.app, we should use this command.

```Console
        myhome$ sudo spctl  --master-disable
```

Then, double click SageMath-9.0.app and direct to run it anyway for the dialog.
After that use this command

```Console
        myhome$ sudo spctl  --master-enable
```

to make the machine safer again.


2020年2月26日水曜日 2時52分47秒 UTC+9 Fernando Q. Gouvea:
To unsubscribe from this group and stop receiving emails from it, send an email to sage-s...@googlegroups.com.

seriously

unread,
Feb 25, 2020, 3:05:59 PM2/25/20
to sage-support

Dear All,

Thanks for your suggestions regarding sage.  I was able finally to install SageMath-9.0 and get it to work.
The main problem was permissions in my home directory ~/.sage.  A lot of these files were
owned by root and had wrong permissions.  Doing chown and chmod on them allowed me, finally,
to open ./sage at the command line.

I can also launch the App, and start a terminal window from the App.  It eventually opens a
pair of browser windows, one which says:

The SageNB server or Jupyter is currently starting. Please wait...

Justin C. Walker

unread,
Feb 25, 2020, 5:58:01 PM2/25/20
to SAGE Support
I have all recent Sage versions running on macOS versions 10.13, 10.14, and 10.15.

All built from a clone of the develop tree, and built with few if any issues.

I build *without* the aid of HomeBrew, MacPorts, or any of the other “package management” schemes available.

HTH

Justin
> --
> 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/c5b789fb-04de-4249-a0a9-c26fe7cf23dc%40googlegroups.com.

--
Justin C. Walker
Director
Institute for the Enhancement of the Director's Income
--
Fame is fleeting, but obscurity
just drags on and on. F&E



Reply all
Reply to author
Forward
0 new messages