Ask Your Question
0

Installation problem on Mac

asked 2017-02-22 22:18:11 +0200

this post is marked as community wiki

This post is a wiki. Anyone with karma >750 is welcome to improve it.

I followed the steps in readme.txt but when I double click on sage, it did not pop up, instead it says

Last login: Wed Feb 22 13:05:21 on console
MacBook-Pro/Applications/SageMath/sage ; exit;
RecursionError: maximum recursion depth exceeded during compilation
┌────────────────────────────────────────────────────────────────────┐
│ SageMath version 7.5.1, Release Date: 2017-01-15                   │
│ Type "notebook()" for the browser-based notebook interface.        │
│ Type "help()" for help.                                            │
└────────────────────────────────────────────────────────────────────┘

ERROR:  The Sage installation tree has moved

from /Users/buildslave-sage/slave/binary_pkg/build/source/SageMath/jc4b6yulaujayb9sr94ia88eourzeqip0oidma
  to /Applications/SageMath

This is not supported, and Sage will not work. To install Sage from a
binary package:

1. Open the .tar.bz2 archive (or .dmg on OSX)

2. Move the SageMath folder/app to where you want it to be. You can
   also rename the directory now.

3. Start sage for the first time. This will then automatically patch
   paths in binaries.

After starting Sage for the first time you cannot change the
installation any more. To install Sage elsewhere, start over from the
binary package. Or recompile Sage from scratch in the new location
("make distclean && make")

logout
Saving session...
...copying shared history...
...saving history...truncating history files...
...completed.

[Process completed]

My computer info: macOS 10.12.3 (16D32) 2 GHz Intel Core i7

The one I downloaded: sage-7.5.1-OSX_10.11.6-x86_64.dmg

Has anyone encountered the same problem?

edit retag flag offensive close merge delete

2 Answers

Sort by » oldest newest most voted
0

answered 2017-02-23 02:07:40 +0200

I'll bet you have Anaconda installed. Previous answers have indicated that removing a single line from a configuration file will allow Sage to run with Anaconda installed:

https://ask.sagemath.org/question/351...
https://ask.sagemath.org/question/344...

Anaconda adds itself to the $PATH variable through .bashrc during installation. Removing any references to Anaconda in your $PATH should allow Sage to run.

The other alternative which is known to work is to uninstall Anaconda completely.

edit flag offensive delete link more
0

answered 2017-03-09 13:18:16 +0200

Extending @paulmasson's answer regarding Anaconda, you might also invoke sage via a little shell script that sets up an appropriate environment. Something along the lines

~/bin/sage:

#!/bin/bash
export SAGE_ROOT=`ls -d1 /Applications/Sage*/Contents/Resources/sage|tail -1`
export PATH=/usr/local/bin:/usr/bin:/sbin:/bin # this overwrites the PATH defined in your .profile and .bashrc
$SAGE_ROOT/local/bin/sage "$@"

Then at the very end of your ~/.profile or ~/.bashrc you add the line

export PATH=~/bin:$PATH

which ensures that before anything else the shell looks for commands in your ~/bin directory. You can then invoke sage from the command line.

Alternatively, if you insist on clicking the sage icon in /Applications, you can just edit /Applications/SageMath-7.5.1.app/sage, which is a shell script. Near the beginning just add the line from above that resets the PATH variable.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

Asked: 2017-02-22 22:18:11 +0200

Seen: 649 times

Last updated: Mar 09 '17