SageMath for non-Debian/Ubuntu Linux?

73 views
Skip to first unread message

Szabolcs Horvát

unread,
Sep 2, 2019, 4:47:22 AM9/2/19
to sage-support
Are there pre-built binaries for other Linux varieties than Debian/Ubuntu, or perhaps a "generic" variety that works on all common Linuxes?

I am looking to install Sage into my home directory on an openSUSE system where I do not have root access. Am I stuck with compiling from source?

Dima Pasechnik

unread,
Sep 2, 2019, 5:27:22 AM9/2/19
to sage-support
you might try conda.
(assuming it works on openSUSE, I don't know)

On Mon, Sep 2, 2019 at 11:47 AM Szabolcs Horvát <szho...@gmail.com> wrote:
>
> Are there pre-built binaries for other Linux varieties than Debian/Ubuntu, or perhaps a "generic" variety that works on all common Linuxes?
>
> I am looking to install Sage into my home directory on an openSUSE system where I do not have root access. Am I stuck with compiling from source?
>
> --
> 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 on the web visit https://groups.google.com/d/msgid/sage-support/b21e517c-38dc-4d49-a343-8838cf3e493b%40googlegroups.com.

Simon King

unread,
Sep 2, 2019, 6:29:10 AM9/2/19
to sage-s...@googlegroups.com
Hi!
I don't know if there are other pre-built binaries (I didn't look at the
download pages). In any case, it is explained at
http://doc.sagemath.org/html/en/installation/binary.html#linux how to
install from a pre-built binary on Linux.

However, provided that the prerequisites mentioned at
http://doc.sagemath.org/html/en/installation/source.html#prerequisites
are available, building from source shouldn't be much of a problem (I
did use openSUSE till a couple of years ago). It just takes some time to
compile.

Note that you don't need root access. In fact, it is recommended AGAINST
building Sage as root, which is also mentioned in the installation guide
(i.e., the pointer above).

Best regards,
Simon

Szabolcs Horvát

unread,
Sep 2, 2019, 7:03:54 AM9/2/19
to sage-support
Thanks to everyone for the responses.

I succeeded in installing from conda-forge. At the moment they seem to have version 8.8 (the latest). 

The only small problem is that I accidentally ended up with a Python 3 based installation. While the functions I need appear to work correctly, my understanding is that Sage still doesn't support Python 3. Thus I should probably re-install with Python 2. Is this correct?


On Monday, 2 September 2019 11:27:22 UTC+2, Dima Pasechnik wrote:
you might try conda.
(assuming it works on openSUSE, I don't know)

On Mon, Sep 2, 2019 at 11:47 AM Szabolcs Horvát <szho...@gmail.com> wrote:
>
> Are there pre-built binaries for other Linux varieties than Debian/Ubuntu, or perhaps a "generic" variety that works on all common Linuxes?
>
> I am looking to install Sage into my home directory on an openSUSE system where I do not have root access. Am I stuck with compiling from source?
>
> --
> 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-s...@googlegroups.com.

Dima Pasechnik

unread,
Sep 2, 2019, 7:08:04 AM9/2/19
to sage-support
the support of Python 3 in Sage 8.8 is not quite complete (getting
almost full in the upcoming 8.9), so it's indeed better to use Python
2 with it.
Try adding the argument

python=2.7

to the

conda create ...

command
> To unsubscribe from this group and stop receiving emails from it, send an email to sage-support...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/sage-support/5c0e5b07-2d5c-4021-84c1-f7b874c563c6%40googlegroups.com.

slelievre

unread,
Sep 2, 2019, 8:50:22 AM9/2/19
to sage-support
Le lundi 2 septembre 2019 13:03:54 UTC+2, Szabolcs Horvát a écrit :
Thanks to everyone for the responses.

SageMath packaging in Fedora is also in good shape.

Distro-independent options include Conda and Nix.

For more options see


I succeeded in installing from conda-forge. At the moment
they seem to have version 8.8 (the latest).  
 
The only small problem is that I accidentally ended up with
a Python 3 based installation. While the functions I need
appear to work correctly, my understanding is that Sage
still doesn't support Python 3. Thus I should probably
re-install with Python 2. Is this correct?

I use Python3-based SageMath for my daily work without problems.
It should be at least 99% working. I would stick with Python 3 unless
you detect that some specific things you need are not yet Python 3
ready in SageMath 8.8.

Less than 100 doctests fail in Python 3 based SageMath 8.8,
and it is down to a handful in 8.9.beta8.

See these two tickets which track progress on making all tests pass:


Reply all
Reply to author
Forward
0 new messages