-
-
Notifications
You must be signed in to change notification settings - Fork 480
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Prefer Linux package manager over linuxbrew; add nix detection #32753
Comments
comment:2
I now see this in our gitpod. |
Author: Matthias Koeppe |
Commit: |
This comment has been minimized.
This comment has been minimized.
comment:5
To be honest with you, I have never used People who follow the declarative approach and want to build Sage from source would bypass It would be useful to know a few things so I can understand how this fits into the Nix model: Is it just for printing a command to install dependencies? Or does it query installed packages as well? What happens if Singular (say) just exists on |
comment:6
Replying to @collares:
It would be great to have instructions how to do Sage development using nixpkgs in our installation manual. Other than figuring out how to provision a nix environment with packages on top of the By the way, I am getting the error:
so it may be that some work on the |
comment:7
Replying to @collares:
Yes, it's for the system package advice that is printed at the end of a The code for this is in |
comment:8
Replying to @collares:
For packages where we don't find a system package in this way, if there is system package information in (This is a design principle for this code -- it does not attempt to take care of system package installation tasks for the user; instead it only informs/educates the user about possible commands.) |
comment:9
Thanks for the information, this is very helpful! So, yeah, I think recommending As for the libhomfly error: The preferred way to install packages using I will try to write some docs for Sage development with nixpkgs as part of the Sage 9.6 release. |
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:11
Not sure what the |
comment:12
Replying to @collares:
Thanks, this helped! |
comment:13
|
comment:14
This is perfect, many thanks! I don't know why I needed the |
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:16
OK, looks like I do need this switch |
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:18
Now I am getting
|
comment:19
I've never seen this error and I am not exactly sure how to fix it. Can we just remove Boost's |
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:21
That worked, thanks. Next error:
|
comment:24
Perhaps good enough for merging? |
Branch has merge conflicts |
If brew is installed on Linux, Sagemath thinks this is the primary package manager and, e.g.,
configure
suggests to runbrew ...
to install new packages. However, linuxbrew is untested as a platform for Sage, and so this is not a good idea.We change
build/bin/sage-guess-package-system
so thatbrew
is only tested after the Linux package managers.We also add a detection for
nix-env
.CC: @mkoeppe @collares @jplab
Component: build: configure
Author: Matthias Koeppe
Branch/Commit: u/mkoeppe/prefer_linux_package_manager_over_linuxbrew @
9af33a1
Issue created by migration from https://trac.sagemath.org/ticket/32753
The text was updated successfully, but these errors were encountered: