Building Sagemath without Conda

199 views
Skip to first unread message

Aatman Supkar

unread,
Mar 30, 2026, 8:19:14 AM (12 days ago) Mar 30
to sage-devel
I want to set up Sage for development, but I don't want to use Conda due to its system-wide installs. What all methods for building Sage currently exist?

Grégory Vanuxem

unread,
Mar 30, 2026, 11:01:20 AM (12 days ago) Mar 30
to sage-...@googlegroups.com
Hi,

Why not looking first at:



Greg

PS: I don't think Conda is system-wide by default, I use it regularly without root privileges. 


Le lun. 30 mars 2026, 14:19, Aatman Supkar <aatman...@gmail.com> a écrit :
I want to set up Sage for development, but I don't want to use Conda due to its system-wide installs. What all methods for building Sage currently exist?

--
You received this message because you are subscribed to the Google Groups "sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sage-devel+...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/sage-devel/81690014-d618-4b60-a29c-5f57d0b527a9n%40googlegroups.com.

Seohyeon “Alex” Lee

unread,
Mar 31, 2026, 8:00:27 AM (11 days ago) Mar 31
to sage-devel
This documentation has more detailed instructions about building without conda.

What OS are you building Sage on?

Aatman Supkar

unread,
Mar 31, 2026, 10:46:00 AM (11 days ago) Mar 31
to sage-devel
The build form source guides are helpful to some extent (I have tried both at some point), but I also find it breaking something or the other everytime. Just to be sure, I tried it again, after following the readme to the best of my ability (I don't know how to set the config variables, although I did make a rather clean PATH this time).

I'll attach a config.log if you can help me find the exact problem.

I'm using a MacOS 15.7.5, and am currently using Homebrew. But I have also been trying to abandon Homebrew and shift to Nix, so builds using that would be much appreciated.
config.log

Dima Pasechnik

unread,
Mar 31, 2026, 11:41:07 AM (11 days ago) Mar 31
to sage-...@googlegroups.com, Aatman Supkar
As you can imagine, there is no way to tell what exactly is going on
from your "it breaking something or the other".

We also need logs/install.log to see the actual errors.
> --
> You received this message because you are subscribed to the Google Groups "sage-devel" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to sage-devel+...@googlegroups.com.
> To view this discussion visit https://groups.google.com/d/msgid/sage-devel/7e872d99-fbc3-47ab-971e-4fbc2158bd9cn%40googlegroups.com.

Aatman Supkar

unread,
Mar 31, 2026, 2:00:29 PM (10 days ago) Mar 31
to sage-devel
Here you go. Should I be adding both config.log and install.log while facing compilation issues in general?
install.log

Aatman Supkar

unread,
Apr 3, 2026, 8:16:22 PM (7 days ago) Apr 3
to sage-devel
Based on my attempts so far, my best guess is that my environment is probably polluted. Would people have exact lists of environments which let them replicate the process describe in the README.md of https://github.com/sagemath/sage? I have performed every step from 1 to 14 to the letter, except steps 8 (not sure exactly what sanitation constitutes) and 10 (device storage issues).

Seohyeon “Alex” Lee

unread,
Apr 3, 2026, 11:17:07 PM (7 days ago) Apr 3
to sage-devel
Hi Aatman, heads up that the README instructions right now are written in a confusing way and might not lead to a successful build. I'm actually working on PR to remedy that issue: https://github.com/sagemath/sage/pull/41835. Since README is compromised, there might not be an environment where you can replicate the process.

Dima Pasechnik

unread,
Apr 4, 2026, 1:39:44 AM (7 days ago) Apr 4
to sage-...@googlegroups.com
Make sure you don't have an active Conda environment.
it's crucial that PATH, CPATH, LIBRARY_PATH, and PKG_CONFIG_PATH don't contain something funny.
It's best to have PATH as minimal as possible (in particular it should not have any Conda or ~/.local, or Nix or some similar stuff like macports things in it)
 and CPATH, LIBRARY_PATH, and PKG_CONFIG_PATH empty before doing

source .homebrew-build-env

and then the rest of the build.

HTH
Dima

Aatman Supkar

unread,
Apr 4, 2026, 1:16:21 PM (6 days ago) Apr 4
to sage-devel
Thanks for the help. I'll be looking forward to a patched README.
I have sanitised the environment as suggested, but the build fails regardless. PFA config.log and install.log.

While this problem is being sorted out, might I ask what's the best way for me to attempt contributing through a Macbook? My end goal is to be able to manage the project via nix, but I would also like solutions that work just for the time being. I'm told docker is excellent at creating a consistent isolated environment, but I have never used it before.
config.log
install.log
Reply all
Reply to author
Forward
0 new messages