Ask Your Question
2

problem installing sage on ubuntu18.04

asked 2018-10-29 12:33:36 +0100

Le TeXnicien de surface gravatar image

updated 2020-01-12 14:03:39 +0100

FrédéricC gravatar image

As written on the download page, I wanted to get the linux binaries. I can't find them. I've obtained the source tarball for ubuntu18.4 (64bits).

I've unarchived the directory Sagemath and cd'ed there. I type make as explained. This is the message I obtain:

RecursionError: maximum recursion depth exceeded during compilation Makefile:31: recipe for target 'base-toolchain' failed make: * [base-toolchain] Error 1

I've tried to install sage via apt with sudo apt install sagemath-common all goes well, no error message. Then try to run sage and obtain the following message:

│ SageMath version 8.1, Release Date: 2017-12-07 │ │ Type "notebook()" for the browser-based notebook interface.
│ │ Type "help()" for help.
│ Traceback (most recent call last):
File "/usr/share/sagemath/bin/sage-ipython", line 7, in <module> from sage.repl.interpreter import SageTerminalApp ImportError: No module named 'sage'

I had a working sage (7.?) on the same machine under ubuntu16.04 which stopped working under ubuntu18.04. I've deleted the Sage and also the .sage directories before trying all the above.

I am at my wit's end and would greatly appreciate any help.

edit retag flag offensive close merge delete

2 Answers

Sort by » oldest newest most voted
3

answered 2018-10-29 14:45:02 +0100

tmonteil gravatar image

If you want to use the binaries, you do not have to run make, since Sage is already compiled. The use of make is only if you want to compile Sage from its source code. So, just unpack the tarball and run ./sage from the direcctory.

If you want to install Sage from ubuntu's package manager, sagemath-common is only a subset of files that are independent from the architecture, hence you will miss all the compiled stuff which can be found in the sagemath package. If you want to run the jupyter notebook, you should install the sagemath-jupyter package, which depends on sagemath, which itself depends on sagemath-common (those packages and other will be installed automatically when you will install sagemath-jupyter).

edit flag offensive delete link more
0

answered 2018-10-29 13:48:35 +0100

slelievre gravatar image

updated 2018-10-29 13:51:23 +0100

If you have Anaconda in your PATH (check the output of echo $PATH to find out), remove it from your PATH and start Sage for the first time.

To remove Anaconda from your PATH, you could either temporarily move the location of Anaconda (see the answer to Stack Overflow question 38175159) or change your PATH (see answer to Ask Sage question 35132).

The above links can be found via a web search engine query for the error message in quotes together with the word sagemath.

After you've started Sage once, I think it's okay to have Anaconda back in your PATH.

edit flag offensive delete link more

Comments

The issue does not seem related to anaconda.

tmonteil gravatar imagetmonteil ( 2018-10-29 14:46:13 +0100 )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

Stats

Asked: 2018-10-29 12:33:36 +0100

Seen: 1,838 times

Last updated: Oct 29 '18