Re: Error during the complitation (make) on WSL

104 views
Skip to first unread message
Message has been deleted

Kwankyu Lee

unread,
Oct 13, 2024, 7:36:09 PM10/13/24
to sage-devel
Hi,

Here is a simplified guide:


Not sure if this would be helpful to your case. Any comments are welcome.

Dima Pasechnik

unread,
Oct 14, 2024, 4:45:37 PM10/14/24
to sage-...@googlegroups.com, Mohamed Takouri
Please post logs/install.log and logs/pkgs/giac-*.log
In the latter we'd be able to see the details.

Best
Dima


On Sun, Oct 13, 2024 at 5:33 PM Mohamed Takouri <moh.t...@gmail.com> wrote:
>
> Hi to everyone, i am trying to install SageMath with WSL I'm following this guide: https://doc.sagemath.org/html/en/installation/source.html#wsl-post-installation-notes (doc.sagemath.org/html/en/installation/source.html#wsl-post-installation-notes)
> At end of sageroot/logs/install.log i find only the error:
> Error installing package giac-1.9.0.15p0
> During the compilation is the same error
>
> --
> 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/f12ef8a5-ced8-4eb3-afa4-a7cf37572facn%40googlegroups.com.

Grégory Vanuxem

unread,
Oct 15, 2024, 12:21:23 AM10/15/24
to sage-...@googlegroups.com
Dima,

Checking more why this error, maybe that helps a little bit:
------------------------------------------------------------------------------
Checking whether SageMath should install SPKG giac...
checking whether any of pari is installed as or will be installed as SPKG... no
checking for giac >= 1.9.0, <= 1.9.999... /usr/bin/giac
checking for giac/giac.h... yes
checking for library containing ConvertUTF16toUTF8... -lgiac
configure: will use system package and not install SPKG giac
------------------------------------------------------------------------------

Where on my Debian like system (Kali) /usr/bin/giac is provided by
xcas and giac.h provided by libgiac-dev.
I just check with 'dpkg -S ...'.

Regards,

- Greg
> To view this discussion on the web visit https://groups.google.com/d/msgid/sage-devel/CAAWYfq3c%3DbGetF8bpfr9rvU-5JE5u800b-%2B5t3s9SWaDV92OOA%40mail.gmail.com.

Dima Pasechnik

unread,
Oct 15, 2024, 11:18:08 AM10/15/24
to sage-...@googlegroups.com
On Tue, Oct 15, 2024 at 5:21 AM Grégory Vanuxem <g.va...@gmail.com> wrote:

> Checking more why this error, maybe that helps a little bit:
> ------------------------------------------------------------------------------
> Checking whether SageMath should install SPKG giac...
> checking whether any of pari is installed as or will be installed as SPKG... no
> checking for giac >= 1.9.0, <= 1.9.999... /usr/bin/giac
> checking for giac/giac.h... yes
> checking for library containing ConvertUTF16toUTF8... -lgiac
> configure: will use system package and not install SPKG giac
> ------------------------------------------------------------------------------
>
> Where on my Debian like system (Kali) /usr/bin/giac is provided by
> xcas and giac.h provided by libgiac-dev.
> I just check with 'dpkg -S ...'.

Sure. However,here the problem is probably related to most WSL users
sticking to the default for WSL Ubuntu LTS distro,
which is likely to be 22.04, carrying giac 1.7, too old for Sage.

So they'd need (i.e. Sage needs) to build giac from source, and this
is not very easy.

Best
Dima


>
> Regards,
>
> - Greg
>
>
>
> Le lun. 14 oct. 2024 à 22:45, Dima Pasechnik <dim...@gmail.com> a écrit :
> >
> > Please post logs/install.log and logs/pkgs/giac-*.log
> > In the latter we'd be able to see the details.
> >
> > Best
> > Dima
> >
> >
> > On Sun, Oct 13, 2024 at 5:33 PM Mohamed Takouri <moh.t...@gmail.com> wrote:
> > >
> > > Hi to everyone, i am trying to install SageMath with WSL I'm following this guide: https://doc.sagemath.org/html/en/installation/source.html#wsl-post-installation-notes (doc.sagemath.org/html/en/installation/source.html#wsl-post-installation-notes)
> > > At end of sageroot/logs/install.log i find only the error:
> > > Error installing package giac-1.9.0.15p0
> > > During the compilation is the same error
> > >
> > > --
> > > 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/f12ef8a5-ced8-4eb3-afa4-a7cf37572facn%40googlegroups.com.
> >
> > --
> > 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/CAAWYfq3c%3DbGetF8bpfr9rvU-5JE5u800b-%2B5t3s9SWaDV92OOA%40mail.gmail.com.
>
> --
> 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/CAHnU2dYdKZMJ-17-D6V9k-v7%2B1Go%2BM73hgaTqax2kf_bmbuoZw%40mail.gmail.com.

Eric Gourgoulhon

unread,
Oct 16, 2024, 8:05:29 AM10/16/24
to sage-devel
Le mardi 15 octobre 2024 à 17:18:08 UTC+2, dim...@gmail.com a écrit :

Sure. However,here the problem is probably related to most WSL users
sticking to the default for WSL Ubuntu LTS distro,
which is likely to be 22.04, carrying giac 1.7, too old for Sage.

So they'd need (i.e. Sage needs) to build giac from source, and this
is not very easy.


Well, if one removes the system's giac, this should be pretty easy, shouldn't it?  (building giac 1.9 within Ubuntu 22.04 does not cause any trouble). For instance, you should remove the Ubuntu's giac package (libgiac-dev, I guess) from your system and rerun Sage's configure script to force the build of giac 1.9 during Sage's install. See e.g. 
for details. 

Eric. 

Reply all
Reply to author
Forward
0 new messages