On Wednesday, May 30, 2018 at 9:01:59 AM UTC-7, Nils Bruin wrote: > > > Currently, if I run the script $SAGE_LOCAL/bin/sage in my normal > environment (where SAGE_ROOT is not set) then I get: > > 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 > '/usr/local/sage/sage-git/local/bin/sage-env'; > possibly contact sage-devel (see http://groups.google.com/group/sage-devel > ). > > If instead I run the script $SAGE_ROOT/sage a value for SAGE_ROOT is > figured out and everything works fine when called from my normal > environment. > > I agree that we should make $SAGE_LOCAL/bin/sage work without environment variables set. We discussed this in https://trac.sagemath.org/ticket/21479 ("./configure --prefix=SAGE_LOCAL"), when $SAGE_LOCAL/bin/sage-env-config was introduced; but then a less ambitious solution was implemented for that ticket.
We could add a line setting $SAGE_ROOT in $SAGE_LOCAL/bin/sage-env-config (via src/bin/sage-env-config.in). On the other hand, of course, most uses of SAGE_ROOT have been eliminated (see https://trac.sagemath.org/ticket/21591 - Replace use of SAGE_ROOT by more specific environment variables); and it would be good to finish this job and allow sage to work without having to complain about this environment variable. -- You received this message because you are subscribed to the Google Groups "sage-devel" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-devel+unsubscr...@googlegroups.com. To post to this group, send email to sage-devel@googlegroups.com. Visit this group at https://groups.google.com/group/sage-devel. For more options, visit https://groups.google.com/d/optout.