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.Tue, 22 Sep 2020 12:49:57 +0200SAGE_ROOT error when start the programhttps://ask.sagemath.org/question/53473/sage_root-error-when-start-the-program/ Hi,
I have installed sage via Conda. It worked alright after the installation. Then I hadn't used Sage for a while until today. Now when I tried to run sage. I encountered an error message:
[I] ~ ❯❯❯ conda activate sage (base)
[I] ~ ❯❯❯ sage (sage)
Error: You must set the SAGE_ROOT environment variable or run this
script from the SAGE_ROOT or SAGE_ROOT/local/bin/ directory.
Error setting environment variables by sourcing '/Users/Hongkai_Yu/opt/anaconda3/envs/sage/bin/sage-env';
possibly contact sage-devel
And even if I entered the bin directory of Sage, the same problem persists.
[I] ~ ❯❯❯ cd opt/anaconda3/envs/sage/bin/ (sage)
[I] ~/o/a/e/s/bin ❯❯❯ ./sage (sage)
Error: You must set the SAGE_ROOT environment variable or run this
script from the SAGE_ROOT or SAGE_ROOT/local/bin/ directory.
Error setting environment variables by sourcing './sage-env';
possibly contact sage-devel
I don't remember I have ever set the Sage environment variables.
I would appreciate it if anyone can help me with this. Thanks in advance!Wed, 16 Sep 2020 23:17:47 +0200https://ask.sagemath.org/question/53473/sage_root-error-when-start-the-program/Comment by FrédéricC for <p>Hi,</p>
<p>I have installed sage via Conda. It worked alright after the installation. Then I hadn't used Sage for a while until today. Now when I tried to run sage. I encountered an error message:</p>
<p>[I] ~ ❯❯❯ conda activate sage (base)
[I] ~ ❯❯❯ sage (sage)
Error: You must set the SAGE_ROOT environment variable or run this
script from the SAGE_ROOT or SAGE_ROOT/local/bin/ directory.
Error setting environment variables by sourcing '/Users/Hongkai_Yu/opt/anaconda3/envs/sage/bin/sage-env';
possibly contact sage-devel
And even if I entered the bin directory of Sage, the same problem persists.</p>
<p>[I] ~ ❯❯❯ cd opt/anaconda3/envs/sage/bin/ (sage)
[I] ~/o/a/e/s/bin ❯❯❯ ./sage (sage)
Error: You must set the SAGE_ROOT environment variable or run this
script from the SAGE_ROOT or SAGE_ROOT/local/bin/ directory.
Error setting environment variables by sourcing './sage-env';
possibly contact sage-devel</p>
<p>I don't remember I have ever set the Sage environment variables.</p>
<p>I would appreciate it if anyone can help me with this. Thanks in advance!</p>
https://ask.sagemath.org/question/53473/sage_root-error-when-start-the-program/?comment=53475#post-id-53475Did you try to re-install ? If you upgraded your system since the last time, it may be required.Thu, 17 Sep 2020 09:30:19 +0200https://ask.sagemath.org/question/53473/sage_root-error-when-start-the-program/?comment=53475#post-id-53475Comment by dan_fulea for <p>Hi,</p>
<p>I have installed sage via Conda. It worked alright after the installation. Then I hadn't used Sage for a while until today. Now when I tried to run sage. I encountered an error message:</p>
<p>[I] ~ ❯❯❯ conda activate sage (base)
[I] ~ ❯❯❯ sage (sage)
Error: You must set the SAGE_ROOT environment variable or run this
script from the SAGE_ROOT or SAGE_ROOT/local/bin/ directory.
Error setting environment variables by sourcing '/Users/Hongkai_Yu/opt/anaconda3/envs/sage/bin/sage-env';
possibly contact sage-devel
And even if I entered the bin directory of Sage, the same problem persists.</p>
<p>[I] ~ ❯❯❯ cd opt/anaconda3/envs/sage/bin/ (sage)
[I] ~/o/a/e/s/bin ❯❯❯ ./sage (sage)
Error: You must set the SAGE_ROOT environment variable or run this
script from the SAGE_ROOT or SAGE_ROOT/local/bin/ directory.
Error setting environment variables by sourcing './sage-env';
possibly contact sage-devel</p>
<p>I don't remember I have ever set the Sage environment variables.</p>
<p>I would appreciate it if anyone can help me with this. Thanks in advance!</p>
https://ask.sagemath.org/question/53473/sage_root-error-when-start-the-program/?comment=53542#post-id-53542I suppose it is a linux install, the last error message is
Error setting environment variables by sourcing './sage-env'
so maybe one should look inside that `./sage-env`. But this would be the start of the path. We need the same machine to debug the point of bad installation. Maybe some directories were removed. Try
sage -sh
then use `set` to see all environment variables. Here, `DOT_SAGE` may be the missing bridge. But there are many other reasons. Just reinstall. Which is the linux distro used?Tue, 22 Sep 2020 12:49:57 +0200https://ask.sagemath.org/question/53473/sage_root-error-when-start-the-program/?comment=53542#post-id-53542