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!
Did you try to re-install ? If you upgraded your system since the last time, it may be required.
I suppose it is a linux install, the last error message is
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. Trythen 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?