Sagemath install from source fails with giac in Ubuntu 24.04

asked 2024-09-10 10:36:39 +0100

Oyano gravatar image

updated 2024-10-05 22:39:16 +0100

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?

edit retag flag offensive close merge delete

Comments

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

Max Alekseyev gravatar imageMax Alekseyev ( 2024-09-10 22:07:55 +0100 )edit

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 ( 2024-09-11 07:09:12 +0100 )edit

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

eric_g gravatar imageeric_g ( 2024-09-11 11:03:06 +0100 )edit

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 ( 2024-09-13 18:35:58 +0100 )edit

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

Max Alekseyev gravatar imageMax Alekseyev ( 2024-10-05 23:03:58 +0100 )edit