Ask Your Question

Installing sage on a macbook

asked 2016-12-14 18:04:11 +0200

this post is marked as community wiki

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

Hi everyone, I'm having trouble installing sage. I've followed the tutorials on the sagemath website, but things just don't add up!

I'm running OS X 10.11.6 and downloaded the .dmg file named "sage-7.4-OSX_10.11.6-x86_64"

After that I mounted this .dmg and copied the folder with the name "SageMath" to my Applications folder

After that I right clicked the folder I moved to applications and clicked the "New Terminal at Folder" option and from the terminal I typed ./sage and pressed enter.

Then I got a couple of errors:

One said: RecursionError: maximum recursion depth exceeded during compilation the other said: ERROR: The Sage installation tree has moved from /Users/buildslave-sage/slave/binary_pkg/build/source/SageMath/(lots of numbers and letters here) to /Applications/SageMath

And that's it, then it shows some text about sage but it doesn't do anything else.

What am I missing here?

Thanks in advance for your help!

edit retag flag offensive close merge delete


Do you have Anaconda installed?

paulmasson gravatar imagepaulmasson ( 2016-12-14 21:17:54 +0200 )edit

Yes, but I tried removing it from my .bash_profile already. Nothing changes.

Richard gravatar imageRichard ( 2016-12-14 21:56:16 +0200 )edit

How about your .bashrc?

paulmasson gravatar imagepaulmasson ( 2016-12-14 22:38:29 +0200 )edit

I got a rule there to make whatever is writing there to write it to .bash_profile.

Or at least that's what I think its doing:

if [ -f ~/.bash_profile ]; then 
    source ~/.bash_profile
export PATH = "$PATH:$HOME/.rvm/bin" #Add RVM to PATH for scripting
Richard gravatar imageRichard ( 2016-12-14 23:06:33 +0200 )edit

source just means this file uses what's in .bash_profile if it exists. If you have no conflicting PATH additions in .bash_profile, try commenting out the one in .bashrc for Ruby and try Sage again.

paulmasson gravatar imagepaulmasson ( 2016-12-14 23:34:29 +0200 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2016-12-28 21:39:19 +0200

Previous answers have indicated that removing a single line from a configuration file will allow Sage to run with Anaconda installed:

Apparently 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

Your Answer

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

Add Answer

Question Tools


Asked: 2016-12-14 18:04:11 +0200

Seen: 248 times

Last updated: Dec 28 '16