Ask Your Question

Sagemath 8.9 installation problem on ubuntu 18.04

asked 2019-12-23 17:56:53 +0200

Hassan Mostafa gravatar image

i am trying to install Sagemath 8.9 on ubuntu 18.04.3 LTS. i am doing the following :

  1. downloaded the sage-8.9-Ubuntu_18.04-x86_64.tar.bz2 .

  2. extracted it (with no sudo permission) using

tar xvf sage-8.9-Ubuntu_18.04-x86_64.tar.bz2

  1. cd into the extracted directory named Sagemath and run


as mentioned in the readme file .. it takes long time then gve me the following error:

[dochtml] OSError: [Errno 13] Permission denied: '/home/hassan/.sage/cache/tmpwpNzXa' Makefile:2038: recipe for target 'doc-html' failed make[3]: * [doc-html] Error 1 make[3]: Leaving directory '/home/hassan/SageMath/build/make' Makefile:1849: recipe for target 'all-start' failed make[2]: * [all-start] Error 2 make[2]: Leaving directory '/home/hassan/SageMath/build/make'

real 1m8.422s user 0m40.632s sys 0m3.585s

Error building Sage.

The following package(s) may have failed to build (not necessarily during this run of 'make all-start'):

The build directory may contain configuration files and other potentially helpful information. WARNING: if you now run 'make' again, the build directory will, by default, be deleted. Set the environment variable SAGE_KEEP_BUILT_SPKGS to 'yes' to prevent this.

Makefile:31: recipe for target 'all-start' failed make[1]: * [all-start] Error 1 make[1]: Leaving directory '/home/hassan/SageMath' Makefile:13: recipe for target 'all' failed make: * [all] Error 2

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2019-12-23 18:19:38 +0200

eric_g gravatar image

The archive sage-8.9-Ubuntu_18.04-x86_64.tar.bz2, which you have downloaded, contains a binary version of SageMath, ready to run on Ubuntu 18.04. So there is no need to run make (*). Simply do

cd SageMath

to run SageMath in console mode, or

./sage -n jupyter

to run it in a Jupyter notebook.

(*) make probably failed in your case because some prerequisites to build from source are missing.

edit flag offensive delete link more


when i did so it has been crashed and generated a report that i have sent to

it is working fine when i use

sudo ./sage

any recommendations ?

Hassan Mostafa gravatar imageHassan Mostafa ( 2019-12-24 02:40:05 +0200 )edit

You should extract the archive in your home directory, as a ordinary user, not as root.

eric_g gravatar imageeric_g ( 2019-12-24 13:54:58 +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

1 follower


Asked: 2019-12-23 17:56:53 +0200

Seen: 172 times

Last updated: Dec 23 '19