Error when installing from source code on Windows 11

69 views
Skip to first unread message

Andry Rabenantoandro

unread,
Mar 25, 2022, 11:15:13 AM3/25/22
to sage-devel
Hello everyone,

I am currently trying to install the latest version of sage locally on my laptop (Windows 11 OS)  from the source code and encountered an error related to building a python package.  I did the installation using cygwin. The error seems to be related to building python3-3.9.9.
I attach hereby a screenshot of the cygwin command prompt. I would appreciate any help towards solving this issue.

Best regards,
Andry

ErrorSage.png

Matthias Koeppe

unread,
Mar 25, 2022, 12:26:06 PM3/25/22
to sage-devel
Your screenshot contains the instructions what files to send with this report.

Johannes Schmitt

unread,
Mar 26, 2022, 12:31:17 PM3/26/22
to sage-devel
I had very similar problems when trying to install the current development version on cygwin (the package python3-3.10.2 failed to build). I was able to fix this by manually specifying in the configuration that the system python3.8 should be used (python3.9 failed for separate reasons), but then I encountered a separate bug with building e_antic-0.1.9. I could post the corresponding log files, though I should say that I have since given up on making it run on cygwin.

What I can recommend to the original poster is to set up sage locally on Windows using the Windows Subsystem for Linux, as described here:
For me neither the BIOS modification nor the upgrade to Ubuntu 20.10 was necessary, and all steps were much faster than the steps I got to work on cygwin, too. After following the instructions above, I continued with the Ubuntu instructions on
followed by the instructions in
as recommended.

Matthias Koeppe

unread,
Mar 26, 2022, 1:04:56 PM3/26/22
to sage-devel
On Saturday, March 26, 2022 at 9:31:17 AM UTC-7 jo314s...@gmail.com wrote:
I had very similar problems when trying to install the current development version on cygwin (the package python3-3.10.2 failed to build). I was able to fix this by manually specifying in the configuration that the system python3.8 should be used (python3.9 failed for separate reasons), but then I encountered a separate bug with building e_antic-0.1.9. I could post the corresponding log files, though I should say that I have since given up on making it run on cygwin.

Yes, many optional packages are broken on cygwin because there are not enough developers contributing to this platform. e_antic is tracked at https://trac.sagemath.org/ticket/28803


I agree with your recommendation to use WSL. In fact, in the upcoming Sage 9.6 release, this is also the official recommendation.
 

Andry Rabenantoandro

unread,
Mar 26, 2022, 3:13:00 PM3/26/22
to sage-...@googlegroups.com
Dear both,

Thank you for your responses. I also got another recommendation to use WSL and I am now convinced it is the better way. I should say I lack  expertise in this kind of situation but wanted to install sage locally nevertheless.



--
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/a76ec96e-6f22-4cb4-aad1-d1792d207c51n%40googlegroups.com.


--
Andry Nirina Rabenantoandro, PhD.


Reply all
Reply to author
Forward
0 new messages