Error installing scipy when building Sage 10.1 from source under WSL2:

227 views
Skip to first unread message

Jeremy Martin

unread,
Oct 19, 2023, 4:40:53 PM10/19/23
to sage-devel
I am trying to build Sage 10.1 from source under WSL2 running Ubuntu 22.04.3 (jammy).  I have followed the directions at https://doc.sagemath.org/html/en/installation/source.html# and https://github.com/sagemath/sage/#instructions-to-build-from-source.  The make fails with "Error installing package scipy-1.10.1".  I am attaching the logfiles as requested.

Disclaimer: I am far from an expert with package managers and the like, so I am hoping for a simple fix!  By the way, I tried
$ sudo apt install scipy
and
$ sudo apt install scipy-1.10.1
but neither of these things succeed ("Unable to locate package").

Thanks for your help,
Jeremy
scipy-1.10.1.log
config.log

Dima Pasechnik

unread,
Oct 20, 2023, 1:36:49 PM10/20/23
to sage-...@googlegroups.com
On Thu, Oct 19, 2023 at 9:40 PM Jeremy Martin <jeremy....@gmail.com> wrote:
>
> I am trying to build Sage 10.1 from source under WSL2 running Ubuntu 22.04.3 (jammy). I have followed the directions at https://doc.sagemath.org/html/en/installation/source.html# and https://github.com/sagemath/sage/#instructions-to-build-from-source. The make fails with "Error installing package scipy-1.10.1". I am attaching the logfiles as requested.

I see

g++: fatal error: Killed signal terminated program cc1plus
compilation terminated.

in your scipy log.

This most probably means that you ran out of RAM. You'll need to
allocate more RAM to your WSL2.

>
> Disclaimer: I am far from an expert with package managers and the like, so I am hoping for a simple fix! By the way, I tried
> $ sudo apt install scipy

If you are in
> and
> $ sudo apt install scipy-1.10.1
> but neither of these things succeed ("Unable to locate package").

typically Python package names on Ubuntu/Debian are prefixed with
python-, or python3-.

Anyway, while 10.1 is not able to use system-wide scipy, our recent
10.2.betas can do it.
(you'll need to run ./configure --enable-system-site-packages)

HTH
Dima



>
> Thanks for your help,
> Jeremy
>
> --
> 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 on the web visit https://groups.google.com/d/msgid/sage-devel/f4709a50-9075-47b7-bb9b-107e0c37d693n%40googlegroups.com.

Jeremy Martin

unread,
Oct 27, 2023, 7:34:50 AM10/27/23
to sage-...@googlegroups.com
Thanks, Dima!  Increasing WSL's memory allocation to 6GB from 4GB fixed
the problem and the rest of the compilation went off without a hitch.

-Jeremy
Reply all
Reply to author
Forward
0 new messages