Ask Your Question

Installing sage on a macbook

asked 2016-12-14 11:04:11 -0500

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 14:17:54 -0500 )edit

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

Richard gravatar imageRichard ( 2016-12-14 14:56:16 -0500 )edit

How about your .bashrc?

paulmasson gravatar imagepaulmasson ( 2016-12-14 15:38:29 -0500 )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 16:06:33 -0500 )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 16:34:29 -0500 )edit

1 answer

Sort by ยป oldest newest most voted

answered 2016-12-28 14:39:19 -0500

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 11:04:11 -0500

Seen: 91 times

Last updated: Dec 28 '16