sage-8.2 on MacOS 10.13.5

122 views
Skip to first unread message

Thomas Kahle

unread,
Jun 15, 2018, 3:59:14 AM6/15/18
to sage-support
Hi,

I'm trying to get sage-8.2 to run on MacOS 10.13.5 in three ways:

1) Download sage-8.2-OSX_10.13.4-x86_64.tar.bz2 and unpack.
2) Download sage-8.2-OSX_10.13.4-x86_64.dmg and unpack
3) hombrew cask install sage

All three of them result in a non-working installation that starts up like this:

sage
RecursionError: maximum recursion depth exceeded during compilation
************************************************************************
It seems that you are attempting to run Sage from an unpacked source
tarball, but you have not compiled it yet (or maybe the build has not
finished). You should run `make` in the Sage root directory first.
If you did not intend to build Sage from source, you should download
a binary tarball instead. Read README.txt for more information.
************************************************************************

What could be wrong?

Thanks,
Thomas

Dima Pasechnik

unread,
Jun 15, 2018, 4:29:45 AM6/15/18
to sage-support
8.2 was released before the latest OSX updates, thus all the bets are off regarding its usability. However, few things that can break your installation: spaces in the path of the directory you unpack into; weird PATH containing things (homebrew?) which shadow /usr/bin, /bin, etc.; Python environments such as anaconda in your PATH; LD_LIBRARY_PATH and its friends set to something "interesting"...

Perhaps the best would be to build the latest beta from source.

Dima Pasechnik

unread,
Jun 15, 2018, 4:53:09 AM6/15/18
to sage-support

Thomas Kahle

unread,
Jun 15, 2018, 4:56:16 AM6/15/18
to sage-s...@googlegroups.com
OK. I don't have anaconda. I don't have spaces in my installation
directory.
I do have python-3 in my path and I have 'python' default to python-3 by
adjusting my path, but this is the case for all my macs and on others
sage works.

Am 15.06.18 um 10:53 schrieb Dima Pasechnik:
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "sage-support" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/sage-support/9hg7fui1rjc/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> sage-support...@googlegroups.com
> <mailto:sage-support...@googlegroups.com>.
> To post to this group, send email to sage-s...@googlegroups.com
> <mailto:sage-s...@googlegroups.com>.
> Visit this group at https://groups.google.com/group/sage-support.
> For more options, visit https://groups.google.com/d/optout.

--
Thomas Kahle
http://www.thomas-kahle.de

signature.asc

Dima Pasechnik

unread,
Jun 15, 2018, 5:09:26 AM6/15/18
to sage-support


On Friday, June 15, 2018 at 9:56:16 AM UTC+1, Thomas Kahle wrote:
OK.  I don't have anaconda.  I don't have spaces in my installation
directory.
I do have python-3 in my path and I have 'python' default to python-3 by
adjusting my path, but this is the case for all my macs and on others
sage works.

another suspect is homebrew

Let's look at what you get from the tarball; suppose you are in the directory you untar Sage to, and then run 
 ./sage 
there.
What is the value of PATH?

As far as I know it should work with python 3, although it perhaps was not tested on OSX...

 

 

Thomas Kahle

unread,
Jun 15, 2018, 5:29:50 AM6/15/18
to sage-support
I think python-3 is fine. As I said, I have another mac with (to my knowledge) identical setup on which sage-8.0 works just fine. I have also tried sage-8.0 on this machine here, but it was the same as in the code below:

tar -xf sage-8.2-OSX_10.11.6-x86_64.tar.bz2
➜  ~ cd SageMath
pwd
echo $PATH
echo $LD_LIBRARY_PATH
➜  SageMath git:(master) ✗ pwd
/Users/tom/SageMath
➜  SageMath git:(master) ✗ echo $PATH
/usr/local/opt/python/libexec/bin:/usr/local/sbin:/Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Home/bin:/Applications/Macaulay2/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/MacGPG2/bin:/Library/TeX/texbin:/Library/Frameworks/Maple.framework/Versions/Current/bin:/Applications/MATLAB_R2014b.app/bin:/Applications/OpenSCAD.app/Contents/MacOS:/Applications/barvinok:/Users/tom/bin:/Users/tom/temp/prefix/bin
➜  SageMath git:(master) ✗ echo $LD_LIBRARY_PATH
/Applications/Macaulay2/lib
➜  SageMath git:(master) ✗ ./sage

RecursionError: maximum recursion depth exceeded during compilation
************************************************************************
It seems that you are attempting to run Sage from an unpacked source
tarball, but you have not compiled it yet (or maybe the build has not
finished). You should run `make` in the Sage root directory first.
If you did not intend to build Sage from source, you should download
a binary tarball instead. Read README.txt for more information.
************************************************************************



Thomas Kahle

unread,
Jun 15, 2018, 5:33:03 AM6/15/18
to sage-support
OK, I just noticed that I downloaded the 10.11.6 version, but it makes no difference, the error is independent of this.

Dima Pasechnik

unread,
Jun 15, 2018, 5:40:45 AM6/15/18
to sage-support


On Friday, June 15, 2018 at 10:29:50 AM UTC+1, Thomas Kahle wrote:
I think python-3 is fine. As I said, I have another mac with (to my knowledge) identical setup on which sage-8.0 works just fine.

Could it be that you installed it there before changing the environment?
 
I have also tried sage-8.0 on this machine here, but it was the same as in the code below:

tar -xf sage-8.2-OSX_10.11.6-x86_64.tar.bz2
➜  ~ cd SageMath
pwd
echo $PATH
echo $LD_LIBRARY_PATH
➜  SageMath git:(master) ✗ pwd
/Users/tom/SageMath
➜  SageMath git:(master) ✗ echo $PATH
/usr/local/opt/python/libexec/bin:/usr/local/sbin:/Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Home/bin:/Applications/Macaulay2/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/MacGPG2/bin:/Library/TeX/texbin:/Library/Frameworks/Maple.framework/Versions/Current/bin:/Applications/MATLAB_R2014b.app/bin:/Applications/OpenSCAD.app/Contents/MacOS:/Applications/barvinok:/Users/tom/bin:/Users/tom/temp/prefix/bin


Could you remove the following chunk (everything before /usr/bin:) from PATH:

/usr/local/opt/python/libexec/bin:/usr/local/sbin:/Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Home/bin:/Applications/Macaulay2/bin:/usr/local/bin:

 
➜  SageMath git:(master) ✗ echo $LD_LIBRARY_PATH

and unset  LD_LIBRARY_PATH

and try again?


Other possible SNAFUs come from hardware - what is the CPU of this Mac?

---------------------

Older that 8.2 binary versions of Sage are known to be (sometimes?) broken on OSX 10.13...

Thomas Kahle

unread,
Jun 15, 2018, 5:46:49 AM6/15/18
to sage-s...@googlegroups.com
Am 15.06.18 um 11:40 schrieb Dima Pasechnik:
>
>
> On Friday, June 15, 2018 at 10:29:50 AM UTC+1, Thomas Kahle wrote:
>
> I think python-3 is fine. As I said, I have another mac with (to my
> knowledge) identical setup on which sage-8.0 works just fine.
>
>
> Could it be that you installed it there before changing the environment?

Oh, yes. I should have checked that first. The
sage-first-run-path-fixing thing seems to be disturbed by the other
python. So the following works:

unset PATH
./sage (for the first time)
PATH back to normal
./sage

This works for me, I have a working sage-8.2. Thanks a lot!
signature.asc
Reply all
Reply to author
Forward
0 new messages