Sagemath install from source fails with giac in Ubuntu 24.04

asked 0 years ago

Oyano gravatar image

updated 0 years ago

I tried to update Ubuntu from 22.04 to 24.04 first in a virtual machine before doing this on my computer. This was good luck because unfortunately there is no sagemath package for the current Ubuntu version 22.04. Therefore I tried to install sagemath from source following the instructions in sagemath documentation. Prerequisites, configure were successful. However make failed after long time throwing an error that giac installation failed. I have giac.log and config.log files but do not know how to add these to this post.

During "make" installation giac says the following several times:

class pointer_to_binary_function

In file indcluded from sym2poly.h:27 from giacPCH.h.38 gausspol.h:96:29

Warning 'template class_Arg1, class_Arg2, class_Result class std::pointer_to_binary_function is deprecated'

Because sagemath is essential for me this error prevents me upgrading to Ubuntu 24.04. Can somebody halp?

Preview: (hide)

Comments

You can paste your logs at https://pastebin.com/

Max Alekseyev gravatar imageMax Alekseyev ( 0 years ago )

FWIW, WorksForMe(TM) on Ubuntu 24-04 running under WSL :

charpent@SAP5342949:~$ uname -a
Linux SAP5342949 5.15.153.1-microsoft-standard-WSL2 #1 SMP Fri Mar 29 23:14:13 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux
charpent@SAP5342949:~$ sage -c 'print(giac("2+2"))'
4

HTH,

Emmanuel Charpentier gravatar imageEmmanuel Charpentier ( 0 years ago )

Have you tried these instructions: https://sagemanifolds.obspm.fr/instal... ?

eric_g gravatar imageeric_g ( 0 years ago )

Yes, I followed these instructions which are pretty much the same as on the sagemath page https://doc.sagemath.org/html/en/installation/source.html (https://doc.sagemath.org/html/en/inst...).

Oyano gravatar imageOyano ( 0 years ago )

You quoted just a warning, which should not break installation. There should be something else.

Max Alekseyev gravatar imageMax Alekseyev ( 0 years ago )