Trying to install Sage on Mac OS, make stage failed

50 views
Skip to first unread message

Tessa Weinstein

unread,
Aug 27, 2025, 2:11:18 PM (9 days ago) Aug 27
to sage-support

I was researching how to get LaTeX to do calculations so that I can automate worksheets and everything pointed to using SageMath. I am attempting to install Sage on a Mac running Sequoia 15.6 (M1).

  1. I installed Xcode and accepted the license using the command "xcode-select --install"
  2. I created a source/build directory
  3. I cloned the Sage git repository
  4. Changed into the created subdirectory sage
  5. I don't plan on doing development, so I went to step 7 and entered the command: "make configure"

I got the following error message: FileNotMirroredError('tarball does not exist on mirror network') sage_bootstrap.tarball.FileNotMirroredError: tarball does not exist on mirror network Error: downloading configure tarball failed make: * [configure] Error 1

I noticed that someone else had a similar problem, and a patch (patch-2.7.6) was suggested; however, I'm unsure how to install the patch or where to install it. I downloaded the patch folder and unzipped it, but I'm unsure how to proceed.

This is the second attempt I've made to install SageMath. First, I tried a binary install, but I could not locate the "sagemath.sty" file to make it known to LaTeX. Using Homebrew or conda seemed more complicated than this method, which is why I was trying it. 

I really appreciate any help you can provide.

Thank you,

Tessa

Tessa Weinstein

unread,
Aug 27, 2025, 2:25:41 PM (9 days ago) Aug 27
to sage-s...@googlegroups.com
Update: I installed "patch-2.7.6" in my user directory. Then tried to "make configure" sage again. I get this error message:

File "/Users/tessa/sage/sage/build/bin/../sage_bootstrap/tarball.py", line 189, in download

    raise FileNotMirroredError('tarball does not exist on mirror network')

sage_bootstrap.tarball.FileNotMirroredError: tarball does not exist on mirror network

Error: downloading configure tarball failed

make: *** [configure] Error 1


Which seems, more or less, to be the same error as before. Not sure what I'm doing wrong. Is there another folder where I could install the patch? 


--
You received this message because you are subscribed to the Google Groups "sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sage-support...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/sage-support/900e3730-dfe1-4863-9f87-3fea10ae66bbn%40googlegroups.com.

David Joyner

unread,
Aug 27, 2025, 2:37:00 PM (9 days ago) Aug 27
to sage-s...@googlegroups.com
If you want to install from source then the posted directions
https://doc.sagemath.org/html/en/installation/source.html#sec-installation-from-sources
do refer to homebrew or conda. 
However, I think the binary does have the latex style file inside a texmf subdirectory somewhere. 

Hopefully a more knowledgeable person will give a more helpful response. Good luck!

 

I really appreciate any help you can provide.

Thank you,

Tessa

--

Dima Pasechnik

unread,
Aug 27, 2025, 3:51:47 PM (9 days ago) Aug 27
to sage-s...@googlegroups.com
There are ways to get Sage working on your Mac without building from source.
In our installation guide
<https://doc.sagemath.org/html/en/installation/index.html#macos>
there is a link to

<https://github.com/3-manifolds/Sage_macOS/releases>

in

No development:

    Install the binary build of SageMath from the 3-manifolds project. It is a signed and notarized app, which works for macOS 10.12 and newer. It is completely self-contained and provides the standard Sage distribution together with many optional packages. Additional optional Python packages can be installed with the %pip magic command and will go into your ~/.sage directory.

    Alternatively, install SageMath from the conda-forge project, as described in section Install from conda-forge.


Or, perhaps, you do need a customisation which does need building from source (as you tried).

HTH
Dima

Marc Culler

unread,
Aug 27, 2025, 6:11:49 PM (9 days ago) Aug 27
to sage-support
Hi Tessa,

Our binary package (actually the "Recommended Extras" installer) installs sagetex.sty in:
/usr/local/texlive/texmf-local/tex/latex/local/sagetex/sagetex.sty

After you run the installer,  you also  need to run mktexlsr in order for TeXLive to find the file.

- Marc  

Tessa Weinstein

unread,
Aug 27, 2025, 6:23:41 PM (9 days ago) Aug 27
to sage-s...@googlegroups.com
Hi Dima,


That seemed to work fine, and now I have a SageMath-10-7 icon in my applications folder. 

However, I cannot locate the "sagetex.sty" file anywhere, even though it asks to overwrite it upon installation. 
When I Google, it says that it can be found here: Applications/SageMath-<version>.app/Contents/Resources/sage/local/share/texmf/tex/latex/sagetex/sagetex.sty

However, there is no "sage" folder in the "Resources" folder. This was the very first way I attempted to install SageMath, and I gave up because I could not locate the "sagetex.sty" to make it known to LaTeX.

Thank you for your help.



--
You received this message because you are subscribed to the Google Groups "sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sage-support...@googlegroups.com.

Marc Culler

unread,
Aug 27, 2025, 6:34:32 PM (9 days ago) Aug 27
to sage-support
Hi Tessa,

Please answer "yes" to agree to overwrite your existing sagetex.sty file, even though you don't have one.  I apologize for that message being imprecise.  It means "Is it OK if we replace your sagetex.sty file If you have one.  But it does not actually check whether you do have one.  We wanted to warn people in case they had made changes to their sagetex.sty file which they don't want to lose.  Similarly for the script /usr/local/sage.

About the crazy statement from google: please don't trust chatbots.  When they don't know the answer they make one up, and the made up one is almost always wrong.  But, as you know, this is a much bigger issue than your sagetex.sty issue. :^)

- Marc

Marc Culler

unread,
Aug 27, 2025, 6:47:47 PM (9 days ago) Aug 27
to sage-support
When I said "/usr/local/sage" I meant "/usr/local/bin/sage".

And, as a reminder, a key step is to run mktexlsr so that TeXLive can update its database of all Tex-related files, and find sagetex.sty after you install it.

- Marc

Marc Culler

unread,
Aug 27, 2025, 10:31:26 PM (9 days ago) Aug 27
to sage-support
One more detail: when you run mktexlsr, if you see messages saying "directory not writable. Skipping..." that means that you need to run mktexlsr as the superuser, by using the command `sudo mktexlsr`.

- Marc
Reply all
Reply to author
Forward
0 new messages