Installing packages on windows 10
I just did a fresh install of SageMath 8.9 (Windows installer 0.5.1).
I want to use "The Normaliz backend for polyhedral computations"
doc.sagemath.org/html/en/reference/discrete_geometry/sage/geometry/polyhedron/backend_normaliz.html
I run the sage -i pynormaliz
inside SageMath 8.9 Shell
. It starts acquiring yasm
, and halts:
[yasm-1.3.0.p0] checking whether we are cross compiling... configure: error: in `/opt/sagemath-8.9/local/var/tmp/sage/build/yasm-1.3.0.p0/src':
[yasm-1.3.0.p0] configure: error: cannot run C compiled programs.
The config.log seems to indicate the problem is in permissions? We have in console.log:
configure:3758: ./conftest.exe
./configure: line 3760: ./conftest.exe: Permission denied
configure:3762: $? = 126
configure:3769: error: in `/opt/sagemath-8.9/local/var/tmp/sage/build/yasm-1.3.0.p0/src':
configure:3771: error: cannot run C compiled programs.
If you meant to cross compile, use `--host'.
See `config.log' for more details
I do not know how to circumvent this.
I'm not sure what I'm doing exactly as I was trying things, like install yasm via Chocolately
stackoverflow.com/a/47883530
The sage still tries to fetch [yasm-1.3.0.p0]
and halts due to the same error, when trying to run sage -i pynormaliz
inside SageMath 8.9 Shell
. - and I do not know why.
Don't get side-tracked trying to do anything about yasm, or with chocolatey (which will be of no use to sage). I don't think that has anything directly to do with it. Rather, the latest version of Sage on Windows appears to be a little broken when it comes to installing optional packages, due to some incompatible changes with how Sage is built. You might try going back to version 8.8 or even 8.7 until someone has time to address the issue.