ASKSAGE: Sage Q&A Forum - RSS feedhttps://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Mon, 29 Oct 2018 14:46:13 +0100problem installing sage on ubuntu18.04https://ask.sagemath.org/question/44110/problem-installing-sage-on-ubuntu1804/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.
Mon, 29 Oct 2018 12:33:36 +0100https://ask.sagemath.org/question/44110/problem-installing-sage-on-ubuntu1804/Answer by tmonteil for <p>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). </p>
<p>I've unarchived the directory <code>Sagemath</code> and cd'ed there. I type <code>make</code> as explained.
This is the message I obtain:</p>
<blockquote>
<p>RecursionError: maximum recursion
depth exceeded during compilation
Makefile:31: recipe for target
'base-toolchain' failed make: <em>*</em>
[base-toolchain] Error 1</p>
</blockquote>
<p>I've tried to install sage via apt with <code>sudo apt install sagemath-common</code>
all goes well, no error message. Then try to run sage and obtain the following message:</p>
<blockquote>
<p>│ SageMath version 8.1, Release Date:
2017-12-07 │ │
Type "notebook()" for the
browser-based notebook interface. <br>
│ │ Type "help()" for help. <br>
│ Traceback (most recent call last): <br>
File "/usr/share/sagemath/bin/sage-ipython", line 7, in <module>
from sage.repl.interpreter import SageTerminalApp
ImportError: No module named 'sage'</p>
</blockquote>
<p>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.</p>
<p>I am at my wit's end and would greatly appreciate any help.</p>
https://ask.sagemath.org/question/44110/problem-installing-sage-on-ubuntu1804/?answer=44114#post-id-44114If 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`).
Mon, 29 Oct 2018 14:45:02 +0100https://ask.sagemath.org/question/44110/problem-installing-sage-on-ubuntu1804/?answer=44114#post-id-44114Answer by slelievre for <p>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). </p>
<p>I've unarchived the directory <code>Sagemath</code> and cd'ed there. I type <code>make</code> as explained.
This is the message I obtain:</p>
<blockquote>
<p>RecursionError: maximum recursion
depth exceeded during compilation
Makefile:31: recipe for target
'base-toolchain' failed make: <em>*</em>
[base-toolchain] Error 1</p>
</blockquote>
<p>I've tried to install sage via apt with <code>sudo apt install sagemath-common</code>
all goes well, no error message. Then try to run sage and obtain the following message:</p>
<blockquote>
<p>│ SageMath version 8.1, Release Date:
2017-12-07 │ │
Type "notebook()" for the
browser-based notebook interface. <br>
│ │ Type "help()" for help. <br>
│ Traceback (most recent call last): <br>
File "/usr/share/sagemath/bin/sage-ipython", line 7, in <module>
from sage.repl.interpreter import SageTerminalApp
ImportError: No module named 'sage'</p>
</blockquote>
<p>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.</p>
<p>I am at my wit's end and would greatly appreciate any help.</p>
https://ask.sagemath.org/question/44110/problem-installing-sage-on-ubuntu1804/?answer=44112#post-id-44112If 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](https://stackoverflow.com/q/38175159))
or change your `PATH` (see answer to
[Ask Sage question 35132](https://ask.sagemath.org/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](https://www.google.com/search?client=opera&q="RecursionError%3A+maximum+recursion+depth+exceeded+during+compilation+Makefile%3A31%3A+recipe+for+target+%27base-toolchain%27+failed+make"+sagemath).
After you've started Sage once, I think it's okay to have Anaconda back in your `PATH`.Mon, 29 Oct 2018 13:48:35 +0100https://ask.sagemath.org/question/44110/problem-installing-sage-on-ubuntu1804/?answer=44112#post-id-44112Comment by tmonteil for <p>If you have Anaconda in your <code>PATH</code> (check the output of <code>echo $PATH</code> to find out),
remove it from your <code>PATH</code> and start Sage for the first time. </p>
<p>To remove Anaconda from your <code>PATH</code>, you could either
temporarily move the location of Anaconda (see the answer to
<a href="https://stackoverflow.com/q/38175159">Stack Overflow question 38175159</a>)
or change your <code>PATH</code> (see answer to
<a href="https://ask.sagemath.org/question/35132">Ask Sage question 35132</a>).</p>
<p>The above links can be found via a <a href="https://www.google.com/search?client=opera&q=">web search engine query for the
error message in quotes together with the word sagemath</a>.</p>
<p>After you've started Sage once, I think it's okay to have Anaconda back in your <code>PATH</code>.</p>
https://ask.sagemath.org/question/44110/problem-installing-sage-on-ubuntu1804/?comment=44115#post-id-44115The issue does not seem related to anaconda.Mon, 29 Oct 2018 14:46:13 +0100https://ask.sagemath.org/question/44110/problem-installing-sage-on-ubuntu1804/?comment=44115#post-id-44115