ASKSAGE: Sage Q&A Forum - RSS feedhttps://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Tue, 05 Nov 2019 16:49:24 +0100Installing packages on windows 10https://ask.sagemath.org/question/48583/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
<br>
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.
<br>
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.Fri, 01 Nov 2019 13:38:35 +0100https://ask.sagemath.org/question/48583/installing-packages-on-windows-10/Comment by Iguananaut for <p>I just did a fresh install of SageMath 8.9 (Windows installer 0.5.1).</p>
<p>I want to use "The Normaliz backend for polyhedral computations"</p>
<pre><code>doc.sagemath.org/html/en/reference/discrete_geometry/sage/geometry/polyhedron/backend_normaliz.html
</code></pre>
<p><br></p>
<p>I run the <code>sage -i pynormaliz</code> inside <code>SageMath 8.9 Shell</code>. It starts acquiring <code>yasm</code>, and halts:</p>
<pre><code>[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.
</code></pre>
<p>The config.log seems to indicate the problem is in permissions? We have in console.log:</p>
<pre><code>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
</code></pre>
<p>I do not know how to circumvent this.</p>
<p><br></p>
<p>I'm not sure what I'm doing exactly as I was trying things, like install yasm via Chocolately</p>
<pre><code>stackoverflow.com/a/47883530
</code></pre>
<p>The sage still tries to fetch <code>[yasm-1.3.0.p0]</code> and halts due to the same error, when trying to run <code>sage -i pynormaliz</code> inside <code>SageMath 8.9 Shell</code>. - and I do not know why.</p>
https://ask.sagemath.org/question/48583/installing-packages-on-windows-10/?comment=48610#post-id-48610Don'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.Tue, 05 Nov 2019 11:33:18 +0100https://ask.sagemath.org/question/48583/installing-packages-on-windows-10/?comment=48610#post-id-48610Answer by Iguananaut for <p>I just did a fresh install of SageMath 8.9 (Windows installer 0.5.1).</p>
<p>I want to use "The Normaliz backend for polyhedral computations"</p>
<pre><code>doc.sagemath.org/html/en/reference/discrete_geometry/sage/geometry/polyhedron/backend_normaliz.html
</code></pre>
<p><br></p>
<p>I run the <code>sage -i pynormaliz</code> inside <code>SageMath 8.9 Shell</code>. It starts acquiring <code>yasm</code>, and halts:</p>
<pre><code>[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.
</code></pre>
<p>The config.log seems to indicate the problem is in permissions? We have in console.log:</p>
<pre><code>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
</code></pre>
<p>I do not know how to circumvent this.</p>
<p><br></p>
<p>I'm not sure what I'm doing exactly as I was trying things, like install yasm via Chocolately</p>
<pre><code>stackoverflow.com/a/47883530
</code></pre>
<p>The sage still tries to fetch <code>[yasm-1.3.0.p0]</code> and halts due to the same error, when trying to run <code>sage -i pynormaliz</code> inside <code>SageMath 8.9 Shell</code>. - and I do not know why.</p>
https://ask.sagemath.org/question/48583/installing-packages-on-windows-10/?answer=48621#post-id-48621I 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](https://trac.sagemath.org/ticket/28695).
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.Tue, 05 Nov 2019 16:49:24 +0100https://ask.sagemath.org/question/48583/installing-packages-on-windows-10/?answer=48621#post-id-48621