Ask Your Question
1

How to install a database for SageMath on the Ubuntu command line?

asked 2023-05-12 18:41:27 +0200

toni gravatar image

I am trying to install a database package for SageMath using Ubuntu (command line), and at the same time trying to get the minimal necessary knowledge of Linux to get started.

The actual package is for knots, and is located https: SLASH SLASH github DOT com/soehms/database_knotinfo#readme (not enough karma to to publish links).

The instructions for installation on SageMath seem clear on that site:

sage -i database_knotinfo

However, this spits out an error message:

make: *** No rule to make target 'all-toolchain'.  Stop.

I don't know what this means or how to solve it. I did look up what make means in this context, but it doesn't help.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
2

answered 2023-05-12 20:32:36 +0200

Emmanuel Charpentier gravatar image

At the moment (May 2023), the optional packages are source packages, which are compiled before insertion in the relevant parts of the Sage installation. The binary installations of Sagemath lack the tools necessary to compile these optional packages.

These installation therefore currently work only for installations compiled from source code.

Sorry.

HTH,

edit flag offensive delete link more

Comments

I'm still building up Linux vocabulary - can I read your message as: "To be able to use that package I would have had to install sage together with the package by downloading files and then compiling them, but since I installed it directly from ubuntu, now it's too late"?

toni gravatar imagetoni ( 2023-05-12 20:39:35 +0200 )edit

No, it's not too late: uninstall SageMath from Ubuntu's package manager and follow these simple steps to install SageMath 9.8 from source: https://sagemanifolds.obspm.fr/instal...

eric_g gravatar imageeric_g ( 2023-05-12 22:27:51 +0200 )edit

Is this because the knot package was prepared exclusively for SageMath 9.8?

toni gravatar imagetoni ( 2023-05-13 03:12:56 +0200 )edit

No, I don't think so. As mentioned by Emmanuel, it is not possible to install packages with sage -i ... within the SageMath provided by Ubuntu. Don't hesitate to install SageMath from source instead, following the above link.It should be really straightforward. In addition, you will benefit from the latest version of SageMath (9.8).

eric_g gravatar imageeric_g ( 2023-05-13 08:58:48 +0200 )edit

@Emmanuel is there any way to provide the binary installation with the necessary tools (on my end)? Is there a list tools that are needed? If it's not possible, wouldn't it be a good idea to give users a better error message when they try to invoke sage -i something? Is there a disclaimer somewhere in the download instructions that warns me about this? Since you say 'at the moment', is this subject to change (soon)? And what is the reasoning for the status quo? Thank you for your time

jogo gravatar imagejogo ( 2023-05-30 09:50:41 +0200 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

2 followers

Stats

Asked: 2023-05-12 18:41:27 +0200

Seen: 193 times

Last updated: May 12 '23