Instructions for installing SAGE from source on MacOS are hard to follow.

asked 1 year ago

takashi gravatar image

updated 1 year ago

I am trying to follow the instructions at https://github.com/sagemath/sage/#readme

I started by selecting a mirror and downloading sage-10.0.tar.gz.

As is customary, it ended up in my "Downloads" folder.

The next instruction says "After downloading the source tarball sage-10.0.tar.gz into ~/sage/" -- I'm not sure what this means -- by "downloading into ~/sage/" do the instructions really mean "drag and drop"?

I successfully dragged and dropped it into ~/sage/, but when I try the next step, it fails to expand the archive.

I tried the following:

$ cd ~/sage/
$ tar xf sage-10.0.tar.gz  # adapt 10.0;

the terminal responds as follows:

tar: #: Not found in archive
tar: adapt: Not found in archive
tar: 10.0: Not found in archive
tar: Error exit delayed from previous errors.

Should I just expand the archive by opening the "sage" folder in the finder and double clicking on the age-10.0.tar.gz file?

Or is it critical that I expand it using the terminal commands shown in the ReadMe?

Preview: (hide)

Comments

It is not critical to use the terminal, in macOS you can expand the archive from Finder.

enzotib gravatar imageenzotib ( 1 year ago )

Thanks for your help. I do wish the instructions were simpler, and also I wonder why the command failed to execute in the terminal window.

takashi gravatar imagetakashi ( 1 year ago )

Did it fail? It may have unpacked the tar file and then run into errors (for reasons I don't understand) after that. One confusing part is that # is a comment symbol, and it and anything after it should be ignored, so I don't know what went wrong with that. You should be able to do tar xf sage-10.0.tar.gz (without the comment) from the terminal.

John Palmieri gravatar imageJohn Palmieri ( 1 year ago )

Yeah, I realized that was just a comment symbol earlier today which was kind of embarassing.

I have unpacked sage-10.0.tar.gz within the folder ~/sage/ using a double click in finder.

I just now tried to do this step:

"Some Homebrew packages are installed “keg-only,” meaning that they are not available in standard paths. To make them accessible when building Sage, run

source SAGE_ROOT/.homebrew-build-env"

Here is what I typed, and here is the terminal output:

stephensalser@Stephens-MBP-2 / % source ~/sage/.homebrew-build-env source: no such file or directory: /Users/stephensalser/sage/.homebrew-build-env

I am trying so hard to follow the instruction as listed on SAGEMATH, but almost every listed command runs into problems for me.

takashi gravatar imagetakashi ( 1 year ago )

SAGE_ROOT is now ~/sage/sage-10.0/ or something along those lines: it's the directory where README.md is, for example. So you need to do source ~/sage/sage-10.0/.homebrew-build-env.

John Palmieri gravatar imageJohn Palmieri ( 1 year ago )