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.Wed, 06 Dec 2017 17:57:44 +0100Error when starting sagehttps://ask.sagemath.org/question/39840/error-when-starting-sage/I installed sage to:
/home/groups/sc/modules/packages/sage/8.0/ (there are the subfolders bin/lib) on CentOS 7
Per module file, I set:
set root /home/groups/sc/modules/packages/sage/8.0
prepend-path PYTHONPATH $root/bin
prepend-path LD_LIBRARY_PATH $root/lib
prepend-path LIBRARY_PATH $root/lib
prepend-path PATH $root/bin
prepend-path CPATH $root/include
prepend-path SAGE_ROOT /home/groups/sc/modules/packages/sage/8.0/
However, when I try to start sage via "sage", I receive:
Error: SAGE_ROOT is set to a bad value:
SAGE_ROOT=/home/groups/sc/modules/packages/sage/8.0/
You must correct it or erase it and run this script from the SAGE_ROOT or SAGE_ROOT/local/bin/ directory.
Error setting environment variables by sourcing '/home/groups/sc/modules/packages/sage/8.0/bin/sage-env';
possibly contact sage-devel (see google/group/sage-devel).
I also tried to go to "cd /home/groups/sc/modules/packages/sage/8.0/bin" and "./sage", but this returns the same error message. If I do not set "SAGE_ROOT", I get the error, that SAGE_ROOT must be set.
What am I doing wrong? Thanks in advance.Wed, 29 Nov 2017 13:18:26 +0100https://ask.sagemath.org/question/39840/error-when-starting-sage/Comment by vdelecroix for <p>I installed sage to:
/home/groups/sc/modules/packages/sage/8.0/ (there are the subfolders bin/lib) on CentOS 7
Per module file, I set:</p>
<pre><code>set root /home/groups/sc/modules/packages/sage/8.0
prepend-path PYTHONPATH $root/bin
prepend-path LD_LIBRARY_PATH $root/lib
prepend-path LIBRARY_PATH $root/lib
prepend-path PATH $root/bin
prepend-path CPATH $root/include
prepend-path SAGE_ROOT /home/groups/sc/modules/packages/sage/8.0/
</code></pre>
<p>However, when I try to start sage via "sage", I receive:</p>
<pre><code>Error: SAGE_ROOT is set to a bad value:
SAGE_ROOT=/home/groups/sc/modules/packages/sage/8.0/
You must correct it or erase it and run this script from the SAGE_ROOT or SAGE_ROOT/local/bin/ directory.
Error setting environment variables by sourcing '/home/groups/sc/modules/packages/sage/8.0/bin/sage-env';
possibly contact sage-devel (see google/group/sage-devel).
</code></pre>
<p>I also tried to go to "cd /home/groups/sc/modules/packages/sage/8.0/bin" and "./sage", but this returns the same error message. If I do not set "SAGE_ROOT", I get the error, that SAGE_ROOT must be set.</p>
<p>What am I doing wrong? Thanks in advance.</p>
https://ask.sagemath.org/question/39840/error-when-starting-sage/?comment=39860#post-id-39860How did you installed Sage?Thu, 30 Nov 2017 21:29:51 +0100https://ask.sagemath.org/question/39840/error-when-starting-sage/?comment=39860#post-id-39860Comment by Iguananaut for <p>I installed sage to:
/home/groups/sc/modules/packages/sage/8.0/ (there are the subfolders bin/lib) on CentOS 7
Per module file, I set:</p>
<pre><code>set root /home/groups/sc/modules/packages/sage/8.0
prepend-path PYTHONPATH $root/bin
prepend-path LD_LIBRARY_PATH $root/lib
prepend-path LIBRARY_PATH $root/lib
prepend-path PATH $root/bin
prepend-path CPATH $root/include
prepend-path SAGE_ROOT /home/groups/sc/modules/packages/sage/8.0/
</code></pre>
<p>However, when I try to start sage via "sage", I receive:</p>
<pre><code>Error: SAGE_ROOT is set to a bad value:
SAGE_ROOT=/home/groups/sc/modules/packages/sage/8.0/
You must correct it or erase it and run this script from the SAGE_ROOT or SAGE_ROOT/local/bin/ directory.
Error setting environment variables by sourcing '/home/groups/sc/modules/packages/sage/8.0/bin/sage-env';
possibly contact sage-devel (see google/group/sage-devel).
</code></pre>
<p>I also tried to go to "cd /home/groups/sc/modules/packages/sage/8.0/bin" and "./sage", but this returns the same error message. If I do not set "SAGE_ROOT", I get the error, that SAGE_ROOT must be set.</p>
<p>What am I doing wrong? Thanks in advance.</p>
https://ask.sagemath.org/question/39840/error-when-starting-sage/?comment=39975#post-id-39975You seem to be confusing `SAGE_ROOT` with `SAGE_LOCAL`. `SAGE_ROOT` is supposed to be the root of the Sage source tree whereas `SAGE_LOCAL` is the "prefix" into which Sage software is installed when it's built. The requirement for the former really ought to go away for "installs" of Sage, but right now it's considered part of the system. So the question the becomes how did you install Sage?Wed, 06 Dec 2017 17:57:44 +0100https://ask.sagemath.org/question/39840/error-when-starting-sage/?comment=39975#post-id-39975