Ask Your Question
1

Installing packages on windows 10

asked 2019-11-01 07:38:35 -0600

soogst gravatar image

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.

edit retag flag offensive close merge delete

Comments

1

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.

Iguananaut gravatar imageIguananaut ( 2019-11-05 04:33:18 -0600 )edit

1 answer

Sort by ยป oldest newest most voted
3

answered 2019-11-05 09:49:24 -0600

Iguananaut gravatar image

updated 2019-11-07 07:51:19 -0600

I was able to make some progress with the following steps (none of which should be necessary; this should be fixed).

First I had to install some missing build dependencies (which should probably just be included in the installation package by default, but which currently aren't):

$ apt-cyg install yasm zlib-devel liblzma-devel libpng-devel libbz2-devel libffi-devel

I also had to run:

$ unset AS LD

This is due to a different bug tracker here.

Then I was able to run

$ cd $SAGE_ROOT
$ ./configure  # just to be on the safe side
$ sage -i pynormaliz

and this allows building pynormliz and its dependencies (e_antic and normaliz). However, the build fails due to some other bug that isn't obvious at the moment, probably due to some other missing build dependencies. Also e_antic appears to get built with OpenMP support even though that shouldn't be supported at the moment. This appears to be causing at least part of the problem...

Unfortunately that's all I've got for now. I'll have to take another look at it another time. Anyways, optional packages are still not all fully supported.

Update: This is now https://trac.sagemath.org/ticket/28703 ; I have confirmed that pynormaliz isn't building on Windows even in a development build.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2019-11-01 07:38:35 -0600

Seen: 71 times

Last updated: Nov 07