2

I've downloaded the precompiled binary for sagemath 9.1(sage-9.1-Ubuntu_18.04-x86_64.tar.bz2), I'm on ubuntu 20.04. After extracting the file when I run ./sage in the terminal it says bash: ./sage: Permission denied. I made the file executable by changing the permission but then it says ./sage: no Sage installation found in $SAGE_ROOT = /home/my_pc/Downloads/SageMath. Can anyone help me with this?

1 Answers1

3

The Sage installation guide says:

If your operating system does not provide SageMath, you can also use a pre-built binary...
Installation from a pre-built binary tarball is an easy and fast way to install Sage. 
Note that on GNU/Linux a preferred way is to use your package manager (e.g. apt, pacman, yum).

Sagemath has packages for the following operating systems:

On GNU/Linux Debian version >= 9, Ubuntu version >= 18.04, Arch Linux
there are three packages to install 
• sagemath (for the binaries) 
• sagemath-jupyter (for the browser interface) 
• and the documentation
which is called sagemath-doc-en on Debian/Ubuntu and sagemath-doc on
Arch Linux.

Using Apt-Get

First, try installing sagemath using the following command in your terminal because your OS is higher than Ubuntu 18.04.

sudo apt-get install sagemath sagemath-jupyter sagemath-doc-en

Then you should be able to run sage from the command line.

Using a Pre-Built Binary

It says you can extract the tarball to a folder in your home directory and run ./sage, which it seems you have done. If it didn't work from there, you can try installing from the package manager.


Source Links: Sage installation guide

iskyfire
  • 779