How do I install sagemath?

asked 2024-08-12 21:41:01 +0200

supercellBA gravatar image

updated 2024-08-13 08:46:50 +0200

FrédéricC gravatar image

Hello. I used sagemath 10.3 and decided to update it. That's where the problem started. I ran make several times and ended up with this error. First time it concerned ipykernel, then openblas and now fflas :

> [spkg-install] ========= FFLAS-FFPACK fgemm Autotuning =========
[spkg-install] =================================================
[spkg-install] 
[spkg-install] == Tuning fgemm over Modular<double> ==
[spkg-install] ./winograd-modular-double: error while loading shared libraries: libgmpxx.so.4: cannot open shared object file: No such file or directory
[spkg-install] make[6]: *** [Makefile:975: autotune] Error 127
[spkg-install] make[5]: *** [Makefile:1013: autotune] Error 2
[spkg-install] Error tuning fflas-ffpack
************************************************************************
Error installing package fflas_ffpack-2.5.0+sage-2024-05-18b

I can't find how to debug it. Your help would be very much appreciated.

edit retag flag offensive close merge delete

Comments

Could you please say the type of computer you are using? Such as Linux and Ubuntu, Windows or Apple. And from where you get your instructions? For example, https://sagemanifolds.obspm.fr/instal...

kyouren gravatar imagekyouren ( 2024-08-13 07:21:06 +0200 )edit

My computer runs on Ubuntu 24.04 LTS x86_64 And i just follozed the README.md because it worked with 10.3

If i install the packages like described in the link, how do i tell the build to refer to them? Thank you for your help 😀

supercellBA gravatar imagesupercellBA ( 2024-08-13 07:39:25 +0200 )edit

The French link I gave you, apparently, has a more up to date list of packages to install, and the README.md is slightly out-of-date. The installs go into your main load libraries, when you use "sudo apt install automake bc binutils...". I hope I have explained it OK.

kyouren gravatar imagekyouren ( 2024-08-13 08:51:04 +0200 )edit

Okay i willl try it. But how do i refer the package manager to apt? I have homebrew installed too and the build seems to refer to it automatically. I don't know if that matters but i think apt would resolve it

supercellBA gravatar imagesupercellBA ( 2024-08-13 08:53:32 +0200 )edit

I use apt in a "terminal", all the time, and rarely use the package managers "Ubuntu Software" and "Synaptic Package Manager" - i only use the package managers because when searching for special software, and now rarely use them. The software I develop is put in /usr/local/bin/, which is first library that is searched.

Hope this helps.

kyouren gravatar imagekyouren ( 2024-08-13 09:19:40 +0200 )edit